CVE-2026-49977
published medium CVSS 3.1 · 4.3tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AmauriC | — | tarteaucitron.js< 1.33.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| AmauriC | tarteaucitron.js | < 1.33.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-285 CWE-285: Improper Authorization
References
4Provider assertions
3GitHub_M · cna
tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b78ca73a815a056f6c0a449626d56d6623e7cd009d8c28d6842e0ee421bf006e
- Ingested
- 23 Sep 2026, 09:17:57 UTC
- Source record
- Official CVE record