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

CVE-2026-96379: Drupal CookieCuttr Stored XSS Vulnerability

CVE-2026-96379 is a stored cross-site scripting vulnerability in Drupal CookieCuttr that enables attackers to inject malicious scripts into web pages. This article covers the technical details, affected versions, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-96379 Overview

CVE-2026-96379 is a stored cross-site scripting (XSS) vulnerability in the Drupal CookieCuttr contributed module. The flaw stems from improper neutralization of input during web page generation [CWE-79]. It affects CookieCuttr versions 2.0.0 through 2.0.3. An attacker with permission to configure the module can inject malicious script content that executes in the browser of any user who loads an affected page. The issue was published to the National Vulnerability Database (NVD) on 2026-10-22 and tracked in the Drupal project under advisory SA-CONTRIB-2026-181.

Critical Impact

Stored XSS enables session hijacking, credential theft, and arbitrary actions performed in the context of authenticated Drupal users, including administrators.

Affected Products

  • Drupal CookieCuttr module version 2.0.0
  • Drupal CookieCuttr module versions 2.0.1 and 2.0.2
  • Drupal CookieCuttr module version 2.0.3

Discovery Timeline

  • 2026-10-22 - CVE-2026-96379 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-96379

Vulnerability Analysis

The CookieCuttr module provides cookie consent banners for Drupal sites. The module accepts configuration input that is later rendered into page markup without sufficient encoding. Because the injected payload persists in site configuration or content storage, every subsequent page view triggers execution. This is a classic stored XSS pattern, categorized as [CWE-79]. Exploitation yields script execution in the trust context of the Drupal site origin, giving the attacker access to cookies, local storage, and the Drupal administrative interface accessible to the victim.

Root Cause

The module fails to apply contextual output encoding when inserting configured values into rendered HTML. Drupal provides sanitization helpers such as Html::escape() and the Twig autoescape pipeline, but the vulnerable code paths in CookieCuttr 2.0.0 through 2.0.3 bypass or disable this protection for one or more banner configuration fields. User-controlled strings flow directly into the Document Object Model (DOM).

Attack Vector

An attacker with the privilege to administer CookieCuttr settings submits a payload containing JavaScript into a vulnerable configuration field. The payload is stored in the Drupal configuration system. When any visitor loads a page that renders the cookie banner, the browser parses and executes the injected script. The attacker can steal session cookies, perform cross-site request forgery (CSRF) against the administrative interface, or redirect users to attacker-controlled infrastructure. Refer to the Drupal Security Advisory for vendor-provided technical details.

Detection Methods for CVE-2026-96379

Indicators of Compromise

  • Unexpected <script>, onerror, or onload fragments stored in CookieCuttr configuration exports or the config table.
  • Outbound HTTP requests from browsers of authenticated Drupal users to unrecognized domains originating from pages that render the cookie banner.
  • Modifications to CookieCuttr settings by accounts that do not normally administer site configuration.

Detection Strategies

  • Review Drupal configuration exports for CookieCuttr settings containing HTML tags, event handlers, or encoded script payloads.
  • Inspect web server access logs for anomalous POST requests to /admin/config paths associated with CookieCuttr.
  • Deploy Content Security Policy (CSP) reporting endpoints to surface inline script violations originating from banner markup.

Monitoring Recommendations

  • Alert on configuration changes to CookieCuttr via Drupal's config audit logs or the Config Log contributed module.
  • Monitor administrative account activity for off-hours logins or unusual permission use.
  • Track CSP violation reports and browser console errors reported by end users.

How to Mitigate CVE-2026-96379

Immediate Actions Required

  • Upgrade the CookieCuttr module to the fixed version identified in SA-CONTRIB-2026-181.
  • Audit existing CookieCuttr configuration values and remove any content containing script tags or event handler attributes.
  • Rotate session credentials for administrative users if malicious configuration content is found.
  • Restrict the administer cookiecuttr permission to a minimal set of trusted roles.

Patch Information

Drupal published remediation guidance in the Drupal Security Advisory. Site operators should install the patched release referenced in the advisory and clear Drupal's render and configuration caches after upgrading.

Workarounds

  • Temporarily disable the CookieCuttr module until the patched release is deployed.
  • Enforce a strict Content Security Policy that disallows inline scripts to reduce the impact of injected payloads.
  • Reduce the number of accounts holding permission to administer CookieCuttr configuration.
bash
# Example: upgrade CookieCuttr via Composer and clear caches
composer update drupal/cookiecuttr --with-dependencies
drush updatedb
drush cache:rebuild

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

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.