# Advanced Spoiler <= 2.02 - Unauthenticated Stored Cross-Site Scripting via 'show' and 'hide' Spoiler Shortcode Attributes

- **ID:** WPSEC-2026-3632
- **Plugin:** Advanced Spoiler (`advanced-spoiler`), https://wordpress.org/plugins/advanced-spoiler/
- **Affected versions:** all versions before 2.03
- **Fixed in:** 2.03 (Update to 2.03 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/advanced-spoiler
- **Fix released:** 2026-11-20
- **Published:** 2026-11-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3632/

## Description

The Advanced Spoiler plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'show' and 'hide' attributes of the [spoiler] shortcode in all versions up to, and including, 2.02 due to insufficient output escaping. The shortcode is processed in post content and in comment text. Its labels are placed into an inline onclick JavaScript string that is protected only by HTML attribute escaping, and are written back to the page as HTML by the toggle script. This makes it possible for unauthenticated attackers, by posting a comment, and for authenticated attackers with contributor-level access and above, by editing a post, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page and toggles the spoiler.

## References

- https://wpsec.com/vuln/WPSEC-2026-3632/
- https://plugins.svn.wordpress.org/advanced-spoiler/tags/2.03/
- https://wordpress.org/plugins/advanced-spoiler/

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

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.
