Date
Severity
Moderately Critical
Vulnerability
Cross Site Scripting
Affected versions
<7.x-1.45

Description

This module addresses the General Data Protection Regulation (GDPR) and the EU Directive on Privacy and Electronic Communications.

The module doesn't sufficiently verify whether "disabled JavaScript" entries are valid or correspond to actual scripts on the page. As a result, an attacker could inject and execute arbitrary JavaScript by adding invalid or non-existent entries, which the module then attempts to process.

This vulnerability is mitigated by the fact that an attacker must have a role with the permission "Administer EU Cookie Compliance banner".

This is a backport of https://www.drupal.org/sa-contrib-2025-072

Solution

Install the latest version.

If you use the EU Cookie Compliance module for Drupal 7, upgrade to EU Cookie Compliance 7.x-1.45:


Reported by

Fixed by

Coordinated by