Skip to main content
← All vulnerabilities
CVE-2026-49977GHSA-JXJ7-G6GM-49J7

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.33.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • AmauriC tarteaucitron.js

    fixed in 1.33.0

  • tarteaucitronjsnpm

    fixed in 1.33.0

References 3

GitHub · AmauriC/tarteaucitron.js