{"id":"CVE-2026-4093","state":"PUBLISHED","title":"Stored XSS in Drupal 7 Term Reference Tree module (token display templates and term labels)","description":"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.","publishedAt":"2026-05-21T21:50:42.339Z","updatedAt":"2026-05-22T13:24:04.565Z","severity":{"score":5.1,"label":"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","source":"drupal"},"assigner":"drupal","products":["Drupal Term Reference Tree"],"affected":[{"vendor":"Drupal","product":"Term Reference Tree","packageName":"Term Reference Tree","defaultStatus":"unaffected","versions":[{"version":"7.x-1.x","status":"affected","lessThanOrEqual":"7.x-1.11","versionType":"custom"}],"collectionURL":"https://www.drupal.org/project/term_reference_tree","repo":"https://git.drupalcode.org/project/term_reference_tree"}],"references":["https://www.herodevs.com/vulnerability-directory/cve-2026-4093","https://d7es.tag1.com/security-advisories/taxonomy-term-reference-tree-widget-moderately-critical-cross-site-scripting"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/4xxx/CVE-2026-4093.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-4093","state":"PUBLISHED","datePublished":"2026-05-21T21:50:42.339Z","dateUpdated":"2026-05-22T13:24:04.565Z","assignerShortName":"drupal","assignerOrgId":"2c85b837-eb8b-40ed-9d74-228c62987387","dateReserved":"2026-03-12T22:40:32.279Z"},"containers":{"cna":{"title":"Stored XSS in Drupal 7 Term Reference Tree module (token display templates and term labels)","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Drupal","product":"Term Reference Tree","packageName":"Term Reference Tree","defaultStatus":"unaffected","versions":[{"version":"7.x-1.x","status":"affected","lessThanOrEqual":"7.x-1.11","versionType":"custom"}],"collectionURL":"https://www.drupal.org/project/term_reference_tree","repo":"https://git.drupalcode.org/project/term_reference_tree"}],"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"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"PASSIVE","vulnConfidentialityImpact":"LOW","subConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","subIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":5.1,"vectorString":"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"drupal","orgId":"2c85b837-eb8b-40ed-9d74-228c62987387","dateUpdated":"2026-05-21T21:50:42.339Z"},"datePublic":"2026-04-01T07:00:00.000Z","impacts":[{"capecId":"CAPEC-592","descriptions":[{"lang":"en","value":"CAPEC-592 Stored XSS"}]}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.5.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-22T13:23:03.434925Z","id":"CVE-2026-4093","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-22T13:24:04.565Z"}}]}}}