Drupal Security Advisory
DRUPAL-CONTRIB-2025-050
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist:https://packages.drupal.org/8 | drupal/klaro | All versions before 3.0.5 (fixed in 3.0.5) |