tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-285.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| AmauriC | tarteaucitron.js | before 1.33.0 | 1.33.0 | Patch available | CNA |
| — | tarteaucitronjs (npm) | before 1.33.0 | 1.33.0 | Patch available | GHSA-jxj7-g6gm-49j7 |
- tarteaucitron.js VendorAmauriC Affected before 1.33.0 Fixed in 1.33.0 Patch available CNA
- tarteaucitronjs (npm) Vendor— Affected before 1.33.0 Fixed in 1.33.0 Patch available GHSA-jxj7-g6gm-49j7
Remediation
- Fix · CNA tarteaucitron.js (AmauriC) Fixed in 1.33.0
- Fix · GHSA-jxj7-g6gm-49j7 tarteaucitronjs (npm) Fixed in 1.33.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-49977
- 2026-10-03 Alias added: GHSA-jxj7-g6gm-49j7
References
More AmauriC vulnerabilities
- TI-2023-03379 Cross-site Scripting (XSS) - Stored in amauric/tarteaucitron.js CVSS 3.1MEDIUM 5.4
- TI-2025-04443 tarteaucitron.io < 1.9.5 - Contributor+ Stored XSS CVSS 3.1MEDIUM 4.7
- TI-2026-65941 WPMobile.App <= 11.82 - Unauthenticated Admin Account Takeover via 'wpapp_category[]' Parameter CVSS 3.1CRITICAL 9.8
- TI-2026-44356 WordPress WPMobile.App plugin <= 11.77 - Broken Access Control vulnerability CVSS 3.1HIGH 7.5
- TI-2024-11523 WPMobile.App — Android and iOS Mobile Application <= 11.52 - Unauthenticated Arbitrary Shortcode Execution CVSS 3.1MEDIUM 6.5
- TI-2024-12908 WPMobile.App <= 11.56 - Open Redirect via 'redirect' Parameter CVSS 3.1HIGH 7.2
Sources
- CVE-2026-49977 · CVE Program
- CVE-2026-49977 · NVD
- FIRST EPSS
- GHSA-jxj7-g6gm-49j7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences