Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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