Skip to main content

Simple Hierarchical Select CVE-2026-4929

| EUVDEUVD-2026-31381 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-21 mlhess@drupal.org GHSA-w38v-4c3f-mg76
5.1
CVSS 4.0 · Vendor: drupal
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain low-privilege Drupal account with taxonomy edit rights
  2. Delivery
    Submit taxonomy term name containing XSS payload
  3. Exploit
    Payload persisted in Drupal term database
  4. Install
    Victim loads page rendering SHS field formatter or term-tree widget
  5. C2
    Browser renders unsanitized term name
  6. Execute
    Injected script executes in victim browser context
  7. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Simple Hierarchical Select (shs) 7.x-1.0 <7.x-1.11

Affected Packages

euvd simple_hierarchical_select_shs fix: 7.x-1.11

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

Vendor (drupal) PRIMARY 5.1 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
PoC Detected
Jun 01, 2026 - 17:52 NVD
https://www.herodevs.com/vulnerability-directory/cve-2026-4929?nes-for-drupal-7
Patch available
May 21, 2026 - 23:17 EUVD

DescriptionCVE.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

EPSS Score
0.0%
Top 87% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy