{"id":"GHSA-jxj7-g6gm-49j7","revision":"d9fee5df889d45bc9c77818592a6da55","records":[{"revision":"d9fee5df889d45bc9c77818592a6da55","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-jxj7-g6gm-49j7","aliases":["CVE-2026-49977"],"title":"tarteaucitron: data-cookie attribute can be used to delete arbitrary cookies","description":"### Summary\n\ntarteaucitron provides a list of cookies and buttons to delete them. If an attacker can write HTML with data attributes, they could create an element that silently deletes a cookie when clicked and trick a user to delete this cookie.\n\n### Details\n\n`tarteaucitron.cookie.purge()` is called on any element with the `purgeBtn` class. It does not check if the element is a legitimate tarteaucitron button or if the cookie corresponds to a service handled by tarteaucitron.\n\n### PoC\n\n```html\n<a class=\"purgeBtn\" data-cookie=\"foo\">Click me!</a>\n```\n\nIf someone has a cookie with this name and clicks on the link, the cookie is silently deleted.\n\n### Impact\n\nThe impact is limited because this only works on cookies without HttpOnly=true and the attacker has to know the name of the cookie.","state":0,"publishedAt":"2026-07-10T16:05:00+00:00","modifiedAt":"2026-07-10T16:26:41.089772+00:00","affected":[{"ecosystem":"npm","name":"tarteaucitronjs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.33.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-jxj7-g6gm-49j7","https://github.com/AmauriC/tarteaucitron.js"],"sourceUrl":"https://github.com/advisories/GHSA-jxj7-g6gm-49j7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-jxj7-g6gm-49j7","identifiers":["GHSA-jxj7-g6gm-49j7","CVE-2026-49977"]},"retained":false,"historicalAffected":[]}],"coverage":[]}