Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege term-editor
-
DeliveryInject JS payload into taxonomy term name or description
-
ExploitVictim with elevated privileges views form containing widget
-
ExecutionStored XSS payload executes in victim's browser
-
ImpactAttacker captures session token or performs privileged actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold a Drupal 7 user account with at least the 'edit terms' or 'administer taxonomy' permission for the vocabulary referenced by the Term Reference Tree field - this is PR:L (low privilege) per the CVSS 4.0 vector and is not default for anonymous or basic authenticated users. A victim user must passively view a form or page that renders the Term Reference Tree widget after the payload is stored (UI:P per CVSS). For Vector A specifically, the Token module must be installed and enabled on the Drupal site, and a token display template must be configured for the relevant Term Reference Tree field - this is a non-default configuration. For Vector B, no additional module or configuration is required beyond the Term Reference Tree widget being present on a form. Exploitation is limited to Drupal 7 installations running Term Reference Tree 7.x-1.11 or earlier; sites where only fully trusted administrators manage taxonomy terms are at significantly reduced risk because the low-privilege attacker precondition cannot be met by untrusted users. |
| Impact | The CVSS 4.0 score of 5.1 (Moderate) reflects a realistic, calibrated risk profile. The vector AV:N/AC:L/AT:N/PR:L/UI:P accurately captures the two limiting factors: low but non-zero privilege (PR:L - the attacker must hold taxonomy term edit rights) and passive user interaction (UI:P - a victim must render the affected form or page). Impact is bounded at Low across all confidentiality and integrity dimensions (VC:L/VI:L/SC:L/SI:L), consistent with typical stored XSS where the immediate payload is session hijacking or credential theft rather than direct data exfiltration or system compromise. No EPSS score was provided in the source data, so exploitation probability cannot be quantified. The vulnerability is not listed in CISA KEV and no public exploit code has been identified at time of analysis, suggesting it has not yet attracted widespread attacker tooling. However, the persistent (stored) nature of both vectors meaningfully increases real-world risk relative to reflected XSS: a single successful injection survives across sessions and can target high-privilege editors or administrators. In organizations running Drupal 7 beyond its end-of-life date with untrusted contributors holding term-edit permissions, this should be treated as a genuine priority. For sites where only administrators manage taxonomy, the practical risk is substantially reduced. |
| Exploit ScenarioDerived | An attacker with a contributor-level Drupal account holding the 'edit terms' permission navigates to the taxonomy term administration interface and injects a JavaScript payload - for example a cookie-stealing script - into a taxonomy term's name or description field used by a Term Reference Tree widget. When an editor or site administrator subsequently views any content creation or editing form that includes that Term Reference Tree field, the stored payload executes silently in their browser session, allowing the attacker to steal the administrator's session cookie and escalate to full site control. No public exploit code has been identified at time of analysis, but the attack requires no specialized tooling beyond a browser and a valid low-privilege account. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 21, 2026
Stored cross-site scripting in the Drupal 7 Term Reference Tree module (versions 7.x-1.x through 7.x-1.11) exposes two distinct injection vectors in its widget and formatter rendering pipeline, both exploitable by any authenticated user with taxonomy term edit permissions. Vector A triggers when the Token module is enabled and token display templates are configured, allowing attacker-controlled term description output to render unsanitized. Vector B targets the widget itself, where taxonomy term labels are written to form output without sanitization, executing injected scripts in the browsers of users who view any form containing the widget. No public exploit code has been identified at time of analysis and the vulnerability is not listed in CISA KEV, but the low privilege bar and persistent nature of stored XSS make this a meaningful risk in multi-user Drupal 7 deployments.
RemediationAI
The primary remediation is to upgrade the Term Reference Tree module to a version beyond 7.x-1.11 that includes output sanitization fixes; consult the Tag1 d7es advisory at https://d7es.tag1.com/security-advisories/taxonomy-term-reference-tree-widget-moderately-critical-cross-site-scripting or the HeroDevs advisory at https://www.herodevs.com/vulnerability-directory/cve-2026-4093 for the exact patched release, as no specific fix version was identified in the available data. If a patched module version is not immediately available or cannot be deployed, the following compensating controls should be applied in order of preference: restrict the 'edit terms' and 'administer taxonomy' Drupal permissions to fully trusted administrative roles only, eliminating the low-privilege attack path; if Vector A is the primary concern, disable the Token module integration or remove token display template configurations for Term Reference Tree fields, which eliminates that specific rendering path while preserving basic widget functionality; apply Drupal's built-in text format restrictions to taxonomy term description fields to strip HTML on save, reducing the persistence window for injected payloads. Note that restricting permissions may break contributor workflows that rely on taxonomy management. Given that Drupal 7 is end-of-life, organizations should also evaluate migration to Drupal 10/11 as a long-term remediation path.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Term Reference Tree module (Drupal project page, 7.x-1.x branch) provides a hierarchical tree widget for referencing taxonomy terms in Drupal 7 content. It relies on Drupal's Form API and Taxonomy API for rendering term labels inside widgets, and optionally integrates with the Token module to allow customizable display templates using token substitution. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), manifesting in two places: (1) token-substituted values from term descriptions passed into template output without HTML encoding, and (2) raw taxonomy term label strings rendered into widget markup without escaping. Because Drupal 7's taxonomy system allows any user with the 'edit terms' or 'administer taxonomy' permission to modify term names and descriptions, the trust boundary is breached - contributor-level principals can inject persistent payloads that execute in administrative or editor contexts. Drupal 7 itself reached end-of-life on January 5, 2025; ongoing patches for this module are expected only through commercial LTS providers such as Tag1 (d7es) and HeroDevs.
Know when Taxonomy Term Reference Tree Widget gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Primary rating from Vendor (drupal) · only source for this CVE.
CVSS VectorVendor: drupal
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-31377
GHSA-q6w2-7g3j-5vg3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB