CVE-2026-4093: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Drupal Term Reference Tree
In the Drupal 7 Term Reference Tree module, two stored XSS vectors exist in the widget/formatter rendering pipeline. Vector A (token display templates): When the Token module is enabled and token display templates are configured, attacker-controlled token output (e.g., term description) is rendered without proper sanitization. Any user who can edit the referenced taxonomy terms can inject HTML/JS that executes when the field is rendered. Vector B (term label rendering): Taxonomy term labels are not properly sanitized before being rendered in the widget, allowing a user with permission to create or edit taxonomy terms to inject scripts into the term name that execute when a form containing the widget is viewed. Exploit affects versions 7.x-1.x up to and including 7.x-1.11.
AI Analysis
Technical Summary
This vulnerability affects the Drupal 7 Term Reference Tree module (7.x-1.x up to 7.x-1.11) and involves improper neutralization of input during web page generation (CWE-79). Specifically, two stored XSS vectors exist: (1) attacker-controlled token output in token display templates is rendered without proper sanitization if the Token module is enabled, allowing script injection via term descriptions; (2) taxonomy term labels are not sanitized before rendering in the widget, enabling script injection via term names. Exploitation requires permissions to create or edit taxonomy terms, and the malicious scripts execute when the relevant fields or forms are viewed.
Potential Impact
Successful exploitation allows an attacker with limited permissions (to create or edit taxonomy terms) to inject and execute arbitrary JavaScript in the context of users viewing the affected fields or forms. This can lead to session hijacking, defacement, or other client-side attacks. The vulnerability has a CVSS 4.0 base score of 5.1 (medium severity), reflecting network attack vector, low complexity, and limited privileges required.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict permissions to create or edit taxonomy terms to trusted users only. Consider disabling the Token module or token display templates if not required, as this reduces exposure to one of the XSS vectors. Monitor Drupal security advisories for updates and apply official patches once released.
CVE-2026-4093: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Drupal Term Reference Tree
Description
In the Drupal 7 Term Reference Tree module, two stored XSS vectors exist in the widget/formatter rendering pipeline. Vector A (token display templates): When the Token module is enabled and token display templates are configured, attacker-controlled token output (e.g., term description) is rendered without proper sanitization. Any user who can edit the referenced taxonomy terms can inject HTML/JS that executes when the field is rendered. Vector B (term label rendering): Taxonomy term labels are not properly sanitized before being rendered in the widget, allowing a user with permission to create or edit taxonomy terms to inject scripts into the term name that execute when a form containing the widget is viewed. Exploit affects versions 7.x-1.x up to and including 7.x-1.11.
CVSS v4.0
Score 5.1medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability affects the Drupal 7 Term Reference Tree module (7.x-1.x up to 7.x-1.11) and involves improper neutralization of input during web page generation (CWE-79). Specifically, two stored XSS vectors exist: (1) attacker-controlled token output in token display templates is rendered without proper sanitization if the Token module is enabled, allowing script injection via term descriptions; (2) taxonomy term labels are not sanitized before rendering in the widget, enabling script injection via term names. Exploitation requires permissions to create or edit taxonomy terms, and the malicious scripts execute when the relevant fields or forms are viewed.
Potential Impact
Successful exploitation allows an attacker with limited permissions (to create or edit taxonomy terms) to inject and execute arbitrary JavaScript in the context of users viewing the affected fields or forms. This can lead to session hijacking, defacement, or other client-side attacks. The vulnerability has a CVSS 4.0 base score of 5.1 (medium severity), reflecting network attack vector, low complexity, and limited privileges required.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict permissions to create or edit taxonomy terms to trusted users only. Consider disabling the Token module or token display templates if not required, as this reduces exposure to one of the XSS vectors. Monitor Drupal security advisories for updates and apply official patches once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- drupal
- Date Reserved
- 2026-03-12T22:40:32.279Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0f83d9e1370fbb48503dd9
Added to database: 05/21/2026, 22:14:49 UTC
Last enriched: 05/21/2026, 22:29:49 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 91
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.