Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-11908

CVE-2026-11908: Drupal Tagify Stored XSS Vulnerability

CVE-2026-11908 is a stored cross-site scripting vulnerability in Drupal Tagify that allows attackers to inject malicious scripts. This article covers the technical details, affected versions 0.0.0 to 1.2.52, and mitigation.

Published:

CVE-2026-11908 Overview

CVE-2026-11908 is a stored cross-site scripting (XSS) vulnerability in the Drupal Tagify contributed module. The flaw stems from improper neutralization of user-supplied input during web page generation, classified under [CWE-79]. Attackers with low privileges can inject persistent JavaScript payloads that execute in the browsers of other Drupal users, including administrators. The issue affects Tagify versions 0.0.0 through 1.2.52. Successful exploitation requires user interaction and leads to scope-changing impact, allowing attackers to compromise session cookies, perform actions on behalf of victims, or pivot to further attacks against the Drupal site.

Critical Impact

Authenticated attackers can inject persistent JavaScript that executes against site visitors and administrators, enabling session theft and unauthorized actions within the Drupal environment.

Affected Products

  • Drupal Tagify module versions 0.0.0 to 1.2.52
  • Drupal sites with the Tagify contributed module installed and enabled
  • Any Drupal deployment permitting low-privileged users to submit tag input handled by Tagify

Discovery Timeline

  • 2026-07-10 - CVE-2026-11908 published to NVD
  • 2026-07-14 - Last updated in NVD database

Technical Details for CVE-2026-11908

Vulnerability Analysis

The Tagify module renders user-submitted tag values into Drupal pages without adequately sanitizing HTML and JavaScript metacharacters. When an authenticated user with permission to create or edit tag fields submits crafted input, the payload is stored in the database. Drupal then serves the unescaped content on any page that renders those tags, executing the attacker's script in the victim's browser session. Because Drupal is a multi-user content management system, the stored payload can reach administrators and content editors, elevating the effective impact of the flaw. The vulnerability requires low privileges to insert the payload and user interaction to trigger execution.

Root Cause

The root cause is missing or insufficient output encoding when Tagify writes user-controlled tag values into the Document Object Model (DOM). Drupal's Twig auto-escaping is bypassed when values are treated as raw markup or injected through JavaScript rendering paths in the Tagify widget. This results in a classic stored XSS primitive where attacker input is trusted as HTML.

Attack Vector

An attacker with an account holding tag submission privileges crafts a tag value containing an HTML event handler or <script> payload. The malicious tag is persisted by the module. When another user views content associated with the tag, the browser parses the payload and executes JavaScript under the origin of the Drupal site. The scope change indicates code executes in a security context beyond the attacker's own, such as an administrator's browser.

No verified public exploit code is available. Refer to the Drupal Security Advisory for vendor-provided technical details.

Detection Methods for CVE-2026-11908

Indicators of Compromise

  • Tag field values in the Drupal database containing HTML tags, javascript: URIs, or event handler attributes such as onerror= and onload=.
  • Unexpected outbound requests from administrator browsers to unfamiliar domains shortly after viewing tagged content.
  • Creation of new administrative accounts or role changes with no corresponding audit trail entry from a legitimate admin session.

Detection Strategies

  • Query the taxonomy_term_field_data and Tagify-related tables for stored values matching regular expressions targeting HTML and script constructs.
  • Enable and monitor Drupal watchdog logs for anomalous form submissions from low-privileged accounts on tag-enabled entities.
  • Deploy Content Security Policy (CSP) reporting to capture inline script violations that indicate injected payloads executing in browsers.

Monitoring Recommendations

  • Track HTTP POST requests to Drupal node and entity edit endpoints for payloads containing script tokens.
  • Alert on browser sessions initiating administrative API calls without a preceding authenticated administrative navigation flow.
  • Review the installed version of the Tagify module across all Drupal environments and flag any instance at or below 1.2.52.

How to Mitigate CVE-2026-11908

Immediate Actions Required

  • Upgrade the Drupal Tagify module to a version later than 1.2.52 as published in the vendor advisory.
  • Audit existing tag data for stored HTML or JavaScript payloads and purge malicious entries.
  • Rotate session identifiers and administrative credentials if injected payloads are found in production data.

Patch Information

The vendor has published remediation guidance in the Drupal Security Advisory SA-CONTRIB-2026-043. Apply the fixed release provided by the Drupal Tagify project maintainers. Verify the installed version using drush pm:list --status=enabled and confirm the module reports a version greater than 1.2.52.

Workarounds

  • Restrict tag creation and editing permissions to trusted roles only until the patch is applied.
  • Deploy a strict Content Security Policy that disallows inline scripts to reduce the impact of successful injection.
  • Temporarily disable the Tagify module on sites where upgrade cannot be performed immediately.
bash
# Configuration example
drush pm:list --status=enabled | grep -i tagify
drush pm:update tagify
drush cache:rebuild

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.