Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-3997: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in hoosierdragon Text Toggle

0
Medium
VulnerabilityCVE-2026-3997cvecve-2026-3997cwe-79
Published: Sat Mar 21 2026 (03/21/2026, 03:27:09 UTC)
Source: CVE Database V5
Vendor/Project: hoosierdragon
Product: Text Toggle

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/09/2026, 11:36:10 UTC

Technical Analysis

CVE-2026-3997 is a stored cross-site scripting vulnerability in the hoosierdragon Text Toggle WordPress plugin. The issue arises from improper neutralization of user input in the 'title' shortcode attribute of [tt_part] and [tt] shortcodes. Specifically, the avp_texttoggle_part_shortcode() function inserts the 'title' attribute directly into HTML output without escaping, both inside an HTML attribute (title="...") and in HTML content. While the 'class' attribute is validated, the 'title' attribute lacks any sanitization, allowing injection of double-quote characters and arbitrary HTML attributes including event handlers. This enables authenticated users with Contributor or higher privileges to inject persistent scripts that execute when pages are viewed.

Potential Impact

An attacker with Contributor-level or higher access can exploit this vulnerability to inject arbitrary JavaScript into pages using the vulnerable shortcodes. This can lead to session hijacking, defacement, or other malicious actions executed in the context of users viewing the injected content. The vulnerability does not affect availability but impacts confidentiality and integrity. The CVSS score of 6.4 reflects a medium severity with network attack vector, low attack complexity, and no user interaction required.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Contributor-level access to trusted users only and avoid using the vulnerable shortcodes with untrusted input. Monitor for plugin updates from hoosierdragon that address this issue and apply them promptly once released.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-03-11T17:06:39.345Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69be1811f4197a8e3b7843ec

Added to database: 3/21/2026, 4:01:21 AM

Last enriched: 4/9/2026, 11:36:10 AM

Last updated: 5/7/2026, 8:39:39 AM

Views: 36

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses