{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "7.x-1.x"
              },
              {
                "last_affected": "7.x-1.11"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "858622997241cf04dddf9f0dd130cd48f9e9fd37"
            },
            {
              "last_affected": "98f658b9d8c4e4585c8fa98cf81aad6bf990f7b4"
            }
          ],
          "repo": "https://git.drupalcode.org/project/term_reference_tree",
          "type": "GIT"
        }
      ]
    }
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-4093",
  "modified": "2026-07-15T01:48:59.922032726Z",
  "published": "2026-05-21T21:50:42.339Z",
  "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"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Stored XSS in Drupal 7 Term Reference Tree module (token display templates and term labels)"
}