Skip to main content
Vulnerability Database/CVE-2026-92767

CVE-2026-92767: Twenty20 WordPress Plugin XSS Vulnerability

CVE-2026-92767 is a stored XSS flaw in the Twenty20 Image Before-After WordPress plugin that lets authenticated attackers inject malicious scripts. This article covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-92767 Overview

CVE-2026-92767 is a Stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the Twenty20 Image Before-After plugin for WordPress. The flaw affects all versions up to and including 2.0.5 and stems from insufficient input sanitization and output escaping on the offset shortcode attribute. Authenticated users with contributor-level access or higher can inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any visitor who accesses the affected page.

Critical Impact

Authenticated contributors can persist malicious JavaScript into WordPress pages, enabling session theft, forced administrative actions, and visitor-side payload delivery whenever an affected page is rendered.

Affected Products

  • Twenty20 Image Before-After plugin for WordPress — versions up to and including 2.0.5
  • Patched release: Twenty20 version 2.0.6
  • Deployment scope: any WordPress site using the Twenty20 shortcode with contributor-level or higher user accounts

Discovery Timeline

  • 2026-10-03 - CVE-2026-92767 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-92767

Vulnerability Analysis

The vulnerability resides in the shortcode handler located in inc/twenty20-shortcode.php. The plugin accepts the offset attribute from a user-supplied shortcode but fails to sanitize the input before storing it and fails to escape it on output. When the shortcode is rendered, the attacker-controlled value is written into page markup, allowing arbitrary HTML and JavaScript to execute in the context of the site.

Because the shortcode is processed inside post or page content, the injected payload is persisted alongside legitimate content. Any visitor rendering the affected page triggers execution of the stored script. The attack succeeds without social engineering once the malicious content is published.

Root Cause

The root cause is a missing input sanitization and output escaping pair on the offset shortcode attribute. WordPress exposes helpers such as sanitize_text_field() and esc_attr() for this purpose, but neither is applied to the attribute value before it is embedded in HTML. The relevant code paths are documented in the plugin source at lines 8, 90, and 95 of twenty20-shortcode.php for the vulnerable 2.0.4 tag.

Attack Vector

Exploitation requires an authenticated account at the contributor role or above. The attacker creates or edits a post containing a Twenty20 shortcode with a crafted offset value carrying an HTML or JavaScript payload. Once the post is published or previewed, the payload executes in the browser of every subsequent viewer, including administrators. Successful execution against an administrator session can lead to account takeover, plugin modification, or additional backdoor placement.

No verified public exploit code is available. See the Wordfence Vulnerability Report and the plugin source reference for additional technical details.

Detection Methods for CVE-2026-92767

Indicators of Compromise

  • Post or page content containing [twenty20 ...] shortcodes with unexpected characters in the offset attribute such as <, >, ", onerror=, or javascript:.
  • Unexplained outbound requests from visitor browsers to third-party domains originating from pages that embed the Twenty20 shortcode.
  • New or modified posts authored by contributor-level accounts that embed Twenty20 shortcodes with non-numeric offset values.

Detection Strategies

  • Query the wp_posts table for post_content matching twenty20 combined with <script, onerror, or onload patterns to surface persisted payloads.
  • Review web server access logs for repeated requests to pages that embed Twenty20 shortcodes paired with suspicious referrers or user-agent anomalies.
  • Deploy a web application firewall rule that inspects shortcode attribute content for HTML control characters in posts submitted via admin-ajax.php or the REST API.

Monitoring Recommendations

  • Alert on new post or page submissions from contributor-role accounts, especially when content includes shortcode attributes with embedded HTML.
  • Monitor Content Security Policy (CSP) violation reports to detect script execution from unauthorized inline sources.
  • Track installed plugin versions against the plugin changeset for 2.0.6 to confirm patched state across managed WordPress installations.

How to Mitigate CVE-2026-92767

Immediate Actions Required

  • Update the Twenty20 Image Before-After plugin to version 2.0.6 or later on all WordPress sites.
  • Audit existing posts and pages for Twenty20 shortcodes containing suspicious offset values and remove or sanitize any malicious content.
  • Review contributor-level and above user accounts, revoke unused accounts, and rotate credentials for accounts with recent suspicious activity.

Patch Information

The vendor fix is included in Twenty20 version 2.0.6. The code changes are documented in the WordPress Twenty20 Changeset 3712833, which introduces proper handling of shortcode attribute values before rendering.

Workarounds

  • Deactivate the Twenty20 plugin until the patched version 2.0.6 can be applied.
  • Restrict post publishing capabilities for contributor accounts by requiring administrator review before content is made public.
  • Implement a strict Content Security Policy that disallows inline scripts to reduce the impact of stored XSS payloads.
  • Deploy WAF signatures that block shortcode attribute values containing <, >, or event-handler patterns on authenticated post submissions.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.