CVE-2026-49977
Received Received - Intake

Cross-Site Request Forgery in tarteaucitron.js

Vulnerability report for CVE-2026-49977, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-17

Last updated on: 2026-07-17

Assigner: GitHub, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-17
Last Modified
2026-07-17
Generated
2026-07-18
AI Q&A
2026-07-18
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
tarteaucitron tarteaucitron.js 1.33.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-285 The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects tarteaucitron.js, a cookie banner tool. Before version 1.33.0, a function called tarteaucitron.cookie.purge() could be triggered by any element with the purgeBtn class. The function did not verify if the element was legitimate or if the cookie belonged to a service managed by tarteaucitron. An attacker could exploit this by creating an HTML element with a data-cookie attribute, allowing them to delete a non-HttpOnly cookie with a known name when clicked by a user.

Detection Guidance

To detect this vulnerability, check if your system uses tarteaucitron.js versions prior to 1.33.0. Inspect HTML elements for the purgeBtn class and data-cookie attributes. Look for non-HttpOnly cookies being deleted unexpectedly.

Impact Analysis

If exploited, this vulnerability could allow an attacker to delete specific cookies on a user's browser without their knowledge. This might disrupt user sessions, log users out of services, or cause unexpected behavior in applications relying on those cookies. The impact is limited to non-HttpOnly cookies with known names.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR by enabling unauthorized cookie deletion through malicious HTML, which may interfere with user consent mechanisms. However, specific compliance impacts depend on implementation and context.

Mitigation Strategies

Upgrade tarteaucitron.js to version 1.33.0 or later to address the vulnerability in the cookie purge functionality.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-49977. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart