CVE-2026-49977

tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies

Published Jul 17, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-jxj7-g6gm-49j7 tarteaucitron: data-cookie attribute can be used to delete arbitrary cookies
History
Type Values Removed Values Added
First Time appeared Amauri
Amauri tarteaucitronjs
Vendors & Products Amauri
Amauri tarteaucitronjs
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies
Weaknesses CWE-285
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 20, 2026, 7:11 PM
Reserved
Jun 2, 2026, 6:30 PM
Status
Deferred
Published
Jul 17, 2026, 9:17 PM
Modified
Oct 24, 2026, 8:10 PM