Vulnerabilities / Advanced Spoiler / WPSEC-2026-3632

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

High 7.2 CWE-79Fixed in 2.03
ID
WPSEC-2026-3632
Plugin
Advanced Spoiler (advanced-spoiler)
Affected
all versions before 2.03
Remediation
Update to 2.03 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-21
Attack surface
Advanced Spoiler on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0