{"id":"CVE-2026-4093","summary":"Stored XSS in Drupal 7 Term Reference Tree module (token display templates and term labels)","details":"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.","modified":"2026-07-15T01:48:59.922032726Z","published":"2026-05-21T21:50:42.339Z","database_specific":{"cna_assigner":"drupal","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4093.json"},"references":[{"type":"WEB","url":"https://git.drupalcode.org/project/term_reference_tree"},{"type":"WEB","url":"https://www.drupal.org/project/term_reference_tree"},{"type":"ADVISORY","url":"https://d7es.tag1.com/security-advisories/taxonomy-term-reference-tree-widget-moderately-critical-cross-site-scripting"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4093.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4093"},{"type":"ADVISORY","url":"https://www.herodevs.com/vulnerability-directory/cve-2026-4093"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.drupalcode.org/project/term_reference_tree","events":[{"introduced":"858622997241cf04dddf9f0dd130cd48f9e9fd37"},{"last_affected":"98f658b9d8c4e4585c8fa98cf81aad6bf990f7b4"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"7.x-1.x"},{"last_affected":"7.x-1.11"}]}}],"versions":["7.x-1.11","7.x-1.10","7.x-1.9","7.x-1.9-beta1","7.x-1.8","7.x-1.7","7.x-1.5","7.x-1.4","7.x-1.3","7.x-1.2","7.x-1.0-beta4","7.x-1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-4093.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}