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

- Severity: Medium 5.1 (CVSS:4.0, scored by drupal) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-21T21:50:42.339Z
- Modified: 2026-07-23T16:10:00.137Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: drupal

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

(As written by CVE List.)

## Affected

- Term Reference Tree: from 7.x-1.x up to 7.x-1.11
- taxonomy_term_reference_tree_widget_project taxonomy_term_reference_tree_widget: from 7.x-1.0 before 7.x-1.12

## Every score

- drupal: CVSS:4.0 5.1 Medium `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`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://www.herodevs.com/vulnerability-directory/cve-2026-4093> (exploit, third-party-advisory)
- <https://d7es.tag1.com/security-advisories/taxonomy-term-reference-tree-widget-moderately-critical-cross-site-scripting> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-4093](https://www.cve.org/CVERecord?id=CVE-2026-4093), CVE Terms of Use, modified 2026-05-22
- NVD: [CVE-2026-4093](https://nvd.nist.gov/vuln/detail/CVE-2026-4093), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-4093 · Whole record: https://cve.day/CVE-2026-4093.json · Rebuilt by cve.day 2026-11-25T22:59:22.129Z
