Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-jxj7-g6gm-49j7: tarteaucitron: data-cookie attribute can be used to delete arbitrary cookies

0
Medium
Published: 07/10/2026 (07/10/2026, 16:05:00 UTC)
Source: GCVE Database
Product: tarteaucitronjs

Description

tarteaucitronjs versions prior to 1.33.0 contain a vulnerability where an attacker who can inject HTML with data attributes can create elements that delete arbitrary cookies when clicked. This occurs because the purge function does not verify if the element is a legitimate button or if the cookie belongs to a managed service. The impact is limited to cookies without the HttpOnly flag and requires the attacker to know the cookie name.

CVSS v3.1

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Affected software

npmghsa
tarteaucitronjs
Affected versions
<1.33.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/11/2026, 10:06:16 UTC

Technical Analysis

The vulnerability in tarteaucitronjs (CVE-2026-49977) allows an attacker capable of injecting HTML with data attributes to create elements with the 'purgeBtn' class and a 'data-cookie' attribute. When a user clicks such an element, the tarteaucitron.cookie.purge() function deletes the specified cookie without verifying the legitimacy of the element or the cookie's association with tarteaucitron. This can lead to silent deletion of arbitrary cookies that are not marked HttpOnly, provided the attacker knows the cookie name. The affected versions are all tarteaucitronjs versions before 1.33.0.

Potential Impact

An attacker can cause users to unknowingly delete arbitrary cookies by tricking them into clicking crafted elements. This only affects cookies that are accessible via JavaScript (i.e., not HttpOnly) and requires knowledge of the cookie name. There is no direct confidentiality or availability impact, but integrity is affected by unauthorized cookie deletion.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict the ability of untrusted users to inject HTML with data attributes in contexts where tarteaucitronjs is used. Consider setting sensitive cookies with the HttpOnly flag to prevent deletion via this method.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-jxj7-g6gm-49j7
Osv Schema Version
1.4.0
Aliases
["CVE-2026-49977"]
Ecosystems
["npm"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a520ee368715ace4391aa7f

Added to database: 07/11/2026, 09:37:39 UTC

Last enriched: 07/11/2026, 10:06:16 UTC

Last updated: 07/11/2026, 10:06:16 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses