SA-CONTRIB-2025-072

Cross-Site Scripting
Affects
EU Cookie Compliance module
in
Drupal 7
No items found.
Versions
<7.x-1.45
Exclamation circle icon
Patch Available

This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs

Overview

Drupal is an open-source content management system known for its flexibility, robust features, and strong community support. Organizations of all sizes use it to build and manage dynamic websites and web applications. The EU Cookie Compliance (GDPR Compliance) module addresses the General Data Protection Regulation (GDPR) and the EU Directive on Privacy and Electronic Communications.

Users are able to identify JavaScript files in the configuration form of the module that will be blocked by the module when consent is not given. Because the module does not sufficiently verify whether "disabled JavaScript" entries exist or can be found on the page, an attacker could inject and execute arbitrary JavaScript. The attacker adds a malicious script that the module attempts to manage, thereby running the script.

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

This issue affects all versions of EU Cookie Compliance lower than 7.x-1.45.

Details

Module Info

Product: Drupal

Affected modules: EU Cookie Compliance (GDPR Compliance)

Affected versions: <7.x-1.45

Project page: https://www.drupal.org/project/eu_cookie_compliance

Vulnerability Info

This medium-severity vulnerability is found in the EU Cookie Compliance contributed module in versions lower than 7.x-1.45.

Addressing the Issue

Users of the affected component(s) should address this exploit in one of the following ways:

  • Check that no unauthorized users have the Administer EU Cookie Compliance banner permission.
  • Sign up for post-EOL security support; HeroDevs customers get immediate access to a patched version of this module.

Credits

Vulnerability Details
ID
SA-CONTRIB-2025-072
PROJECT Affected
EU Cookie Compliance module
Versions Affected
<7.x-1.45
Published date
June 13, 2025
≈ Fix date
May 28, 2025
Fixed in
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
Medium
Category
Cross-Site Scripting
Sign up for the latest vulnerability alerts fixed in
Drupal 7 NES
Rss feed icon
Subscribe via RSS
or
Thanks for signing up for our Newsletter! We look forward to connecting with you.
Oops! Something went wrong while submitting the form.