{"id":"CVE-2026-4093","published":"2026-05-21T21:50:42Z","modified":"2026-05-22T13:24:04Z","title":"Stored XSS in Drupal 7 Term Reference Tree module (token display templates and term labels)","vendor":"Drupal","product":"Term Reference Tree","tier":"tail","description":{"text":"In the Drupal 7 Term Reference Tree module, two stored XSS vectors exist in the widget/formatter rendering pipeline.\n\nVector 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.\n\nVector 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.\n\nExploit affects versions 7.x-1.x up to and including 7.x-1.11.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00172,"percentile":0.06738,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://www.herodevs.com/vulnerability-directory/cve-2026-4093","tags":["third-party-advisory"]},{"url":"https://d7es.tag1.com/security-advisories/taxonomy-term-reference-tree-widget-moderately-critical-cross-site-scripting","tags":["third-party-advisory"]}],"priority":{"score":4.9,"factors":[{"name":"EPSS percentile","points":1.35},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"drupal","affectedVersions":[{"vendor":"Drupal","product":"Term Reference Tree","versions":[">= 7.x-1.x, <= 7.x-1.11"]}],"capec":[{"id":"CAPEC-592","name":"Stored XSS"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-22T13:23:03.434925Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-31377","exploited":false,"provenance":"source"}}