Twenty20 Image Before-After <= 2.0.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'offset' Shortcode Attribute
- ID
- WPSEC-2026-0287
- Plugin
- Twenty20 Image Before-After (twenty20)
- Affected
- all versions before 2.0.6
- Remediation
- Update to 2.0.6 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-10-22
- Attack surface
- Twenty20 Image Before-After on WPSec AttackSurface
- Fix released
- Published
Also published later by Wordfence as CVE-2026-92767, on 2026-10-02.
Description
The Twenty20 Image Before-After plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'offset' attribute of the [twenty20] shortcode (also reachable through the Elementor widget) in all versions up to, and including, 2.0.5. The value was printed unquoted into the inline JavaScript that initialises the slider, where esc_js() does not prevent injection, and earlier fixes only blocked one known payload string. 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.
References
- https://wpsec.com/vuln/WPSEC-2026-0287/
- https://plugins.svn.wordpress.org/twenty20/tags/2.0.6/
- https://wordpress.org/plugins/twenty20/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS