Medium severity · published Jul 17, 2026
CVE-2026-49977
tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies
4.3
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 29% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
TA
tarteaucitron.js · AmauriC
< 1.33.0 · source: vendor
Affected product
TA
tarteaucitron.js
AmauriC
More from tarteaucitron.js
6.6
CVE-2025-31475
tarteaucitron.js allows prototype pollution via custom text injection
6.6
CVE-2025-31138
tarteaucitron.js allows UI manipulation via unrestricted CSS injection
5.4
CVE-2026-111713
tarteaucitron.js before 1.37.0 XSS via getElemAttr Attribute Validation Mismatch
4.8
CVE-2025-31476
tarteaucitron.js allows url scheme injection via unfiltered inputs
4.4
CVE-2026-22809
tarteaucitron.js has Regular Expression Denial of Service (ReDoS) vulnerability