Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.6

CVE-2026-4093: Drupal 7 Term Reference Tree can run malicious scripts

CVE-2026-4093 · published 5 months ago
Summary

The Term Reference Tree add‑on for Drupal 7 lets someone who can edit taxonomy terms insert hidden code that runs when the field is shown. This affects versions up to 7.x‑1.11. Upgrade to a newer release or remove the add‑on to stop the risk.

What to do
  • Update taxonomy_term_reference_tree_widget_project taxonomy_term_reference_tree_widget to version 7.x-1.12 or later.
Affected software
VendorProductAffected versions
taxonomy_term_reference_tree_widget_project taxonomy_term_reference_tree_widget >= 7.x-1.0, < 7.x-1.12
cpe:2.3:a:taxonomy_term_reference_tree_widget_project:taxonomy_term_reference_tree_widget:*:*:*:*:*:drupal:*:*
Original advisory text
Stored XSS in Drupal 7 Term Reference Tree module (token display templates and term labels)
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.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
7.6 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published21 May 2026
Updated26 Oct 2026
First seen21 May 2026
Sources
CVE-2026-4093 · NVD
CVE-2026-4093 · OSV
Track software like this
Free during beta