CVE-2026-3997
Received Received - Intake
Stored XSS in WordPress Text Toggle Plugin via Unsanitized Title Attribute

Publication date: 2026-03-21

Last updated on: 2026-03-21

Assigner: Wordfence

Description
The Text Toggle plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'title' shortcode attribute of the [tt_part] and [tt] shortcodes in all versions up to and including 1.1. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes. 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="...") on line 116 and in HTML content on line 119. While the 'class' attribute is properly validated using ctype_alnum(), the 'title' attribute has no sanitization whatsoever. An attacker can inject double-quote characters to break out of the title attribute and inject arbitrary HTML attributes including event handlers. 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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-21
Last Modified
2026-03-21
Generated
2026-05-07
AI Q&A
2026-03-21
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
terry_obrien text_toggle to 1.1 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

The Text Toggle plugin for WordPress has a Stored Cross-Site Scripting (XSS) vulnerability in the 'title' shortcode attribute of the [tt_part] and [tt] shortcodes in all versions up to 1.1.

This vulnerability exists because the 'title' attribute is taken from user input and inserted directly into HTML output without proper sanitization or escaping.

An attacker with Contributor-level access or higher can inject malicious scripts by including special characters in the 'title' attribute, which can break out of the HTML attribute context and add arbitrary HTML or event handlers.

These injected scripts will execute whenever a user views the affected page, potentially compromising user security.


How can this vulnerability impact me? :

This vulnerability allows an attacker with Contributor-level access or above to inject malicious scripts into pages viewed by other users.

The impact includes the potential for theft of user credentials, session hijacking, defacement of the website, or execution of unauthorized actions on behalf of users.

Because the vulnerability is a Stored Cross-Site Scripting issue, the malicious code persists on the site and affects all users who access the compromised content.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

I don't know


What immediate steps should I take to mitigate this vulnerability?

I don't know


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart