{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-4093",
        "assignerOrgId": "2c85b837-eb8b-40ed-9d74-228c62987387",
        "state": "PUBLISHED",
        "assignerShortName": "drupal",
        "dateReserved": "2026-03-12T22:40:32.279Z",
        "datePublished": "2026-05-21T21:50:42.339Z",
        "dateUpdated": "2026-05-22T13:24:04.565Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "2c85b837-eb8b-40ed-9d74-228c62987387",
                "shortName": "drupal",
                "dateUpdated": "2026-05-21T21:50:42.339Z"
            },
            "title": "Stored XSS in Drupal 7 Term Reference Tree module (token display templates and term labels)",
            "datePublic": "2026-04-01T07:00:00.000Z",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-79",
                            "description": "CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-592",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-592 Stored XSS"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "Drupal",
                    "product": "Term Reference Tree",
                    "collectionURL": "https://www.drupal.org/project/term_reference_tree",
                    "packageName": "Term Reference Tree",
                    "repo": "https://git.drupalcode.org/project/term_reference_tree",
                    "versions": [
                        {
                            "status": "affected",
                            "version": "7.x-1.x",
                            "lessThanOrEqual": "7.x-1.11",
                            "versionType": "custom"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "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.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "In the Drupal 7 Term Reference Tree module, two stored XSS vectors exist in the widget/formatter rendering pipeline.<br><br><b>Vector A (token display templates):</b> 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.<br><br><b>Vector B (term label rendering):</b> 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.<br><br>Exploit affects versions 7.x-1.x up to and including 7.x-1.11."
                        }
                    ]
                }
            ],
            "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"
                    }
                }
            ],
            "source": {
                "discovery": "UNKNOWN"
            },
            "x_generator": {
                "engine": "Vulnogram 0.5.0"
            }
        },
        "adp": [
            {
                "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"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-05-22T13:24:04.565Z"
                }
            }
        ]
    }
}