CVE-2026-4093 Stored XSS in Drupal 7 Term Reference Tree module (token display templates and term labels)

Medium 5.1 Published Updated

Stored XSS in Drupal Term Reference Tree allows attackers to inject scripts via term labels or token templates, potentially leading to session hijacking.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-4093?

CVE-2026-4093 is a medium-severity cross-site scripting vulnerability in Drupal Term Reference Tree, published on 21 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2026-4093?

It affects 1 product.

Products include Taxonomy Term Reference Tree Widget Project Taxonomy Term Reference Tree Widget.

How do I fix CVE-2026-4093?

Apply the vendor's patch.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-4093 being exploited?

There is no known exploitation of CVE-2026-4093 in the wild and no public exploit code.

Sources

Also known as CLSA-2026-1789375926, GHSA-q6w2-7g3j-5vg3.

Is CVE-2026-4093 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free