—
DRUPAL-CONTRIB-2025-072
Details
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".
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist:https://packages.drupal.org/8/drupal/eu_cookie_compliance
Introduced in:
0Fixed in: 1.26.0Upgrade drupal/eu_cookie_compliance to 1.26.0 or newer (ecosystem packagist:https://packages.drupal.org/8).