ADVISORIES

Vulnerability

CVE-2026-49977

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.

2 advisories report this vulnerability, across 2 ecosystems.

Medium severity All Packagist 1npm 1

Advisories

  • DRUPAL-CONTRIB-2026-040

    This module enables sites to comply with the European cookie law using tarteaucitron.js. The module doesn't sufficiently filter user-supplied markup inside of content leading to an attacker being able to delete…

    CVE-2026-49977 Packagist Updated 17 November 2026
  • GHSA-jxj7-g6gm-49j7

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

    Moderate CVE-2026-49977 npm Updated 17 November 2026

References