CVE-2026-49977 tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies
MediumCVSS 4.3
EPSS 0.35%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- PHP
Description
tarteaucitron.js is a compliant and accessible cookie banner. Prior to 1.33.0, tarteaucitron.cookie.purge() is called on any element with the purgeBtn class and does not check whether the element is a legitimate tarteaucitron button or whether the cookie corresponds to a service handled by tarteaucitron. If an attacker can write HTML with data attributes, an element with data-cookie can silently delete a non-HttpOnly cookie with a known name when clicked by a user. This issue is fixed in version 1.33.0.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| drupal/tacjs(Packagist https //packages.drupal.org/8) | < 6.8.0 | 6.8.0 | Fixed |
| npm tarteaucitronjs(npm) | < 1.33.0 | 1.33.0 | Fixed |
| AmauriC tarteaucitron.js | = < 1.33.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| AmauriC tarteaucitron.js | = < 1.33.0 | No fix listed |
| npm tarteaucitronjs(npm) | < 1.33.0 | 1.33.0 |
| drupal/tacjs(Packagist:https://packages.drupal.org/8) | < 6.8.0 | 6.8.0 |
References
- www.drupal.org
- https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-jxj7-g6gm-49j7 vendor-advisory
- https://github.com/AmauriC/tarteaucitron.js/commit/24b5464400ae2ff1ad96a092c629b9d632b9cc93
- https://github.com/AmauriC/tarteaucitron.js/releases/tag/v1.33.0
- github.com
- github.com product