# Otter Blocks – Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE <= 3.2.12 - Authenticated (Contributor+) Stored Cross-Site Scripting via Atomic Wind Image Post Field

- **ID:** WPSEC-2026-4172
- **Plugin:** Otter Blocks – Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE (`otter-blocks`), https://wordpress.org/plugins/otter-blocks/
- **Affected versions:** from 3.1.6 before 3.2.13
- **Fixed in:** 3.2.13 (Update to 3.2.13 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-28)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/otter-blocks
- **Fix released:** 2026-11-27
- **Published:** 2026-11-28
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4172/

## Description

The Otter Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Atomic Wind image block's 'author_avatar' and 'featured_image' post fields in versions 3.1.6 up to, and including, 3.2.12, due to the author name or post title being inserted with preg_replace() into the block's alt attribute without neutralising regular-expression backreferences such as '$0'. A backreference copies the block's original alt attribute, quotes included, back into the markup, which breaks out of the attribute. This makes it possible for authenticated attackers with contributor-level access and above to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page, when the Atomic Wind blocks module is enabled.

## References

- https://wpsec.com/vuln/WPSEC-2026-4172/
- https://plugins.svn.wordpress.org/otter-blocks/tags/3.2.13/
- https://wordpress.org/plugins/otter-blocks/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4172/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
