Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain low-privilege Drupal account with taxonomy edit rights
-
DeliverySubmit taxonomy term name containing XSS payload
-
ExploitPayload persisted in Drupal term database
-
InstallVictim loads page rendering SHS field formatter or term-tree widget
-
C2Browser renders unsanitized term name
-
ExecuteInjected script executes in victim browser context
-
ImpactAttacker achieves session theft or DOM manipulation
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two concurrent conditions: (1) the attacker must hold a Drupal 7 role that grants permission to create or edit taxonomy terms - confirmed by the PR:L component of the CVSS 4.0 vector, meaning a low-privileged authenticated account is sufficient; and (2) a victim user must load a page that renders either the shs_field_formatter_view output or a term-tree widget populated by shs_term_get_children containing the poisoned term name, consistent with UI:P (passive interaction, no deliberate click required). Exploitation is further bounded to installations running SHS module versions 7.x-1.0 through 7.x-1.10 on Drupal 7. Limiting factors include: sites where taxonomy editing is restricted exclusively to fully trusted administrators eliminate the primary attack vector entirely; sites not using the SHS field formatter or term-tree widget display are not exposed through these specific code paths; and the cross-site scripting impact is scoped to the browser session of the victim rather than the server itself. No special network position, protocol, or non-default platform configuration beyond a standard Drupal 7 deployment is required. |
| Impact | The CVSS 4.0 score of 5.1 reflects moderate severity, consistent with a stored XSS requiring authenticated access and passive victim interaction. The vector AV:N/AC:L/AT:N/PR:L/UI:P indicates network-accessible exploitation with low complexity and no special attack prerequisites, but the PR:L component confirms an authenticated low-privilege account is required to plant the payload, and UI:P confirms a victim must passively load a page containing the malicious term. Impact is constrained to low confidentiality and integrity effects on both the vulnerable system and any subsequent systems within scope - no availability impact. The exploit maturity field (E:X) is not defined, providing no confirmed exploitation intelligence. EPSS data was not provided in the source material. No CISA KEV listing exists and no public POC is identified, keeping real-world exploitation risk below what the network attack vector alone might imply. The primary risk amplifier is Drupal 7's end-of-life status: without official security support, patching depends entirely on third-party extended support subscriptions, meaning unsubscribed sites have no remediation path through official channels. Sites that restrict taxonomy editing to fully trusted administrators face substantially lower practical risk. |
| Exploit ScenarioDerived | An authenticated Drupal user holding a role with taxonomy term editing rights - such as a content editor, moderator, or compromised low-privilege account - navigates to the taxonomy term administration interface and saves a term name containing a JavaScript payload (e.g., a script tag or event handler attribute). When any other authenticated or anonymous user subsequently loads a page that renders the SHS field formatter widget or triggers term-tree child data generation for the poisoned term, the injected script executes in the victim's browser context, enabling session token theft, credential harvesting, or DOM manipulation. No public POC is identified at time of analysis, but the attack requires no specialized tooling beyond standard web browser form submission. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 21, 2026
Stored cross-site scripting in the Simple Hierarchical Select (SHS) module for Drupal 7 (versions 7.x-1.0 through 7.x-1.10) enables authenticated attackers with taxonomy term editing privileges to inject malicious scripts via unsanitized term names. Two distinct code paths are confirmed vulnerable: field formatter output rendered by shs_field_formatter_view and term-tree child data generated by shs_term_get_children, both of which fail to apply proper output escaping before HTML rendering. No public exploit is identified at time of analysis and no CISA KEV listing exists, but the network-accessible attack vector combined with Drupal 7's end-of-life status substantially elevates residual risk for unpatched deployments.
RemediationAI
No specific patched version number was identified in the available source data; the Tag1 advisory at https://d7es.tag1.com/security-advisories/simple-hierarchical-select-moderately-critical-cross-site-scripting should be consulted directly for the recommended upgrade target. Organizations running Drupal 7 without a commercial extended support subscription (Tag1 D7ES or HeroDevs NES) have no official patch pathway and should prioritize enrolling in one of these programs or migrating to a supported Drupal version. As an immediate compensating control, restrict the 'administer taxonomy' and 'edit terms' permissions exclusively to fully trusted administrator roles - this directly eliminates the PR:L attack surface by preventing untrusted users from seeding malicious term names, though it imposes workflow constraints on sites that rely on delegated taxonomy editing. A secondary control is deploying WAF rules to inspect and block common XSS payloads in taxonomy term submission endpoints; note this has limited efficacy against obfuscated or encoded payloads and should not substitute for patching. Disabling the SHS module entirely removes the vulnerable rendering paths (shs_field_formatter_view and shs_term_get_children) at the cost of losing the hierarchical select widget functionality.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Simple Hierarchical Select is a Drupal 7 contributed module that renders taxonomy term hierarchies as cascading select widgets for content authoring interfaces. The vulnerability originates in two functions: shs_field_formatter_view, which renders taxonomy-derived field output directly into HTML context, and shs_term_get_children, which generates JSON or markup payloads for populating child term selectors in the widget tree. Both functions accept taxonomy term name strings - which may be user-controlled - and emit them into HTML or JavaScript contexts without calling Drupal 7's check_plain(), filter_xss(), or equivalent sanitization APIs. No CWE was formally assigned in the source data, but the root cause class aligns with CWE-79 (Improper Neutralization of Input During Web Page Generation). No CPE strings were provided in the source data. The module operates within the Drupal 7 ecosystem, which reached official end-of-life in November 2023, meaning security updates must come from third-party extended support providers such as Tag1 Consulting or HeroDevs.
Know when Simple Hierarchical Select gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (drupal) · only source for this CVE.
CVSS VectorVendor: drupal
Lifecycle Timeline
2DescriptionCVE.org
Simple Hierarchical Select (SHS) for Drupal 7 contains cross-site scripting risk due to improper output escaping of term-derived text. Confirmed affected paths include field formatter output (shs_field_formatter_view) and term-tree child-term data generation (shs_term_get_children). Malicious taxonomy term names can be rendered unsafely depending on output context. This affects versions from 7.x-1.0 through (and including) 7.x-1.10.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-31381
GHSA-w38v-4c3f-mg76
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB