What’s Vulnerable › Vulnerabilities
CVE-2026-4093: Stored XSS in Drupal 7 Term Reference Tree module (token display templates and term labels)
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-05-21 · updated 2026-07-23
- Weakness: CWE-79
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.
Affected products
- Drupal Term Reference Tree: from 7.x-1.0 before 7.x-1.12 — fixed in 7.x-1.12
How to fix
Upgrade to a fixed version: Drupal Term Reference Tree 7.x-1.12. Check the vendor advisory for mitigations.
References
- https://d7es.tag1.com/security-advisories/taxonomy-term-reference-tree-widget-moderately-critical-cross-site-scripting
- https://www.herodevs.com/vulnerability-directory/cve-2026-4093
Get alerted when CVE-2026-4093 or the next vulnerability affects your stack