CVE-2026-49977 json
tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies
published 2026-07-10 4 mo ago modified 2026-10-24 15 d ago also EUVD-2026-45318 , GHSA-jxj7-g6gm-49j7
- cvss
- 4.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 29%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm tarteaucitronjs 1.33.0
- amauri tarteaucitronjs 1.33.0
- tarteaucitron tarteaucitron 1.33.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.35% chance of exploitation in the next 30 days, higher than 29% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| GitHub | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | tarteaucitronjs | <1.33.0 |
1.33.0 |
Affected products
- AmauriC tarteaucitron.js
Classification
- Weakness
-
- CWE-285 Improper Authorization
References
- github.com /AmauriC/tarteaucitron.js/commit/24b5464400ae2ff1ad96a092c629b9d632b9cc93
-
github.com
/AmauriC/tarteaucitron.js/security/advisories/GHSA-jxj7-g6gm-49j7
web
- github.com /AmauriC/tarteaucitron.js/releases/tag/v1.33.0
- drupal.org /sa-contrib-2026-040
-
github.com
/AmauriC/tarteaucitron.js
package
Sources
- CVE List CVE-2026-49977
- GitHub Advisory GHSA-jxj7-g6gm-49j7
- NVD CVE-2026-49977
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.