
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-3997 is a Stored Cross-Site Scripting (XSS) vulnerability in the Text Toggle plugin for WordPress, affecting all versions up to and including 1.1. The flaw allows authenticated attackers with Contributor-level access or above to inject arbitrary web scripts via the title shortcode attribute of the [tt_part] and [tt] shortcodes. It was published on March 21, 2026, and carries a CVSS v3.1 base score of 6.4 (Medium) (Red Hat CVE, CIRCL).
The root cause is insufficient input sanitization and output escaping on user-supplied shortcode attributes (CWE-79). Specifically, in the avp_texttoggle_part_shortcode() function, the title attribute is extracted from shortcode attributes and concatenated directly into HTML output without any escaping — both within an HTML attribute context (title="...") and in HTML content. While the class attribute is properly validated using ctype_alnum(), the title attribute receives no sanitization whatsoever, allowing an attacker to inject double-quote characters to break out of the HTML attribute and insert arbitrary HTML attributes or event handlers (e.g., onclick, onerror). Exploitation requires the attacker to create or edit a post/page containing the vulnerable shortcode (Red Hat CVE, CIRCL).
Successful exploitation enables persistent script execution in the browsers of any user who visits a page containing the injected shortcode. This can lead to session cookie theft, credential harvesting, defacement of page content, or redirection to malicious sites. The scope is changed (affecting users beyond the attacker's own session), with low confidentiality and integrity impacts and no availability impact (Red Hat CVE).
No public exploit code or active in-the-wild exploitation has been reported for CVE-2026-3997 as of the available data. The EPSS score is approximately 0.056%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires at minimum Contributor-level authentication on the target WordPress site, limiting the attack surface compared to unauthenticated vulnerabilities (Red Hat CVE, CIRCL).
https://target.com/wp-content/plugins/text-toggle/readme.txt) or using tools like WPScan.[tt_part] or [tt] shortcode.title attribute that breaks out of the HTML attribute context, for example:[tt_part title='" onmouseover="alert(document.cookie)' ]or inject an event handler to exfiltrate session cookies to an attacker-controlled server.wp-admin/post.php or the REST API containing shortcode content with double-quote injection patterns in the title attribute (e.g., title=" followed by event handler keywords like onerror, onmouseover, onclick).wp_posts table containing [tt_part] or [tt] shortcodes with HTML event handlers or JavaScript URIs embedded in the title attribute.text-toggle.php or related files.WordPress site administrators should update the Text Toggle plugin to a version beyond 1.1 that includes proper sanitization of the title shortcode attribute. As a workaround, restrict Contributor-level user registration and post creation until the patch is applied, or disable the Text Toggle plugin entirely. Review existing posts for any suspicious shortcode usage and audit Contributor-level accounts for unauthorized activity (Red Hat CVE, CIRCL).
Coverage of CVE-2026-3997 has been limited to automated vulnerability tracking platforms and aggregators such as CVEFeed, VulDB, Radar Offseq, and InfinitSec, with no notable researcher commentary or significant media coverage identified (InfinitSec).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."