CVE-2026-49977: tarteaucitron · data-cookie attribute can be used to delete arbitrary cookies
Affects tarteaucitronjsSource GCVE Database
Not known to be exploited · CVSS 4.3 Medium : upgrade to 1.33.0 when convenient.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 28% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.33.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade tarteaucitronjs to 1.33.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmtarteaucitronjs | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, restrict or sanitize user-supplied HTML to prevent injection of elements with data-cookie attributes. Consider setting sensitive cookies with the HttpOnly flag to prevent deletion via this method.
Description
tarteaucitronjs versions prior to 1.33.0 contain a vulnerability where an attacker able to inject HTML with data attributes can create elements that delete arbitrary cookies when clicked. This occurs because the purge function does not verify the legitimacy of the element or ownership of the cookie. Exploitation requires user interaction and knowledge of the cookie name. The impact is limited to cookies without the HttpOnly flag.
References
- github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-jxj7-g6gm-49j7 (opens in a new tab)
- github.com/AmauriC/tarteaucitron.js (opens in a new tab)
- github.com/AmauriC/tarteaucitron.js/commit/24b5464400ae2ff1ad96a092c629b9d632b9cc93 (opens in a new tab)
- github.com/AmauriC/tarteaucitron.js/releases/tag/v1.33.0 (opens in a new tab)
- drupal.org/sa-contrib-2026-040 (opens in a new tab)