CVE-2026-4929

Simple Hierarchical Select (Drupal 7) XSS in term-derived output

Published May 21, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The Simple Hierarchical Select module for Drupal 7 contains a cross‑site scripting vulnerability caused by failing to escape taxonomy term names before rendering them. This flaw occurs when the module outputs term‑derived data in the field formatter view or during child‑term generation, allowing arbitrary HTML or JavaScript to be displayed to users who view the affected content.

Affected Systems

Drupal 7 sites that use the Simple Hierarchical Select module from versions 7.x‑1.0 through 7.x‑1.10 are affected. The vulnerability applies to any installation where taxonomy term data rendered by the module is accessible to users.

Risk and Exploitability

The CVSS score of 5.1 signifies a medium severity issue, and no EPSS value is available. The vulnerability is not listed in the CISA KEV catalog. An attacker can create a malicious taxonomy term via the web interface or API and, when it is rendered by the module, will execute script code in the browsers of any user who views that content. Exploitation is remote, requires no local privileges, and is confined to the application context.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Simple Hierarchical Select module to a version that includes proper output escaping for term‑derived data, such as 7.x‑1.11 or later.
  • If an upgrade is not immediately possible, enforce a Content Security Policy that blocks execution of scripts from untrusted sources to reduce the risk of XSS attacks.
  • Validate and sanitize taxonomy term names before they are stored, using Drupal’s built‑in sanitization functions or custom input validation to remove disallowed characters.

Generated by OpenCVE AI on May 21, 2026 at 23:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Simple Hierarchical Select Project
Simple Hierarchical Select Project simple Hierarchical Select
CPEs cpe:2.3:a:simple_hierarchical_select_project:simple_hierarchical_select:*:*:*:*:*:drupal:*:*
Vendors & Products Simple Hierarchical Select Project
Simple Hierarchical Select Project simple Hierarchical Select
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Drupal
Drupal simple Hierarchical Select (shs)
Vendors & Products Drupal
Drupal simple Hierarchical Select (shs)
Type Values Removed Values Added
Weaknesses CWE-79
Type Values Removed Values Added
Description 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.
Title Simple Hierarchical Select (Drupal 7) XSS in term-derived output
References
Metrics cvssV4_0

{'score': 5.1, '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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
drupal
Published
Updated
May 22, 2026, 12:52 PM
Reserved
Mar 26, 2026, 7:18 PM
Status
Analyzed
Published
May 21, 2026, 10:16 PM
Modified
Jul 23, 2026, 4:10 PM