ADVISORIES

Drupal Security Advisory

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".

Affected packages

EcosystemPackageAffected versions
Packagist:https://packages.drupal.org/8drupal/eu_cookie_compliance
All versions before 1.26.0 (fixed in 1.26.0)

References