View online: https://www.drupal.org/sa-contrib-2025-050
Project: Klaro Cookie & Consent Management [1] Date: 2025-May-07 Security risk: *Moderately critical* 14 ∕ 25 AC:Basic/A:User/CI:Some/II:Some/E:Theoretical/TD:All [2] Vulnerability: Cross Site Scripting
Affected versions: <3.0.5 CVE IDs: CVE-2025-47704 Description: Klaro Cookie & Consent Management module is used for consent management for cookies and external sources. It makes changes to the markup to enable or disable loading.
The module doesn't sufficiently sanitize data attributes allowing persistent Cross Site Scripting (XSS) attacks.
This vulnerability is mitigated by the fact that an attacker must have a role with permission to enter HTML tags containing specific data attributes.
Solution: Install the latest version:
* If you use the Klaro Cookie & Consent Management module for Drupal 10.x/11.x, upgrade to Klaro Cookie & Consent Management 3.0.5 [3]
Reported By: * Pierre Rudloff (prudloff) [4]
Fixed By: * Jan Kellermann (jan kellermann) [5]
Coordinated By: * Greg Knaddison (greggles) [6] of the Drupal Security Team * Juraj Nemec (poker10) [7] of the Drupal Security Team
[1] https://www.drupal.org/project/klaro [2] https://www.drupal.org/security-team/risk-levels [3] https://www.drupal.org/node/3523166 [4] https://www.drupal.org/u/prudloff [5] https://www.drupal.org/u/jan-kellermann [6] https://www.drupal.org/u/greggles [7] https://www.drupal.org/u/poker10