{"id":"CVE-2026-49977","summary":"tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies","details":"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.","aliases":["GHSA-jxj7-g6gm-49j7"],"modified":"2026-07-22T05:29:54.204365020Z","published":"2026-07-17T20:21:21.476Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-285"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49977.json"},"references":[{"type":"WEB","url":"https://github.com/AmauriC/tarteaucitron.js/releases/tag/v1.33.0"},{"type":"WEB","url":"https://www.drupal.org/sa-contrib-2026-040"},{"type":"ADVISORY","url":"https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-jxj7-g6gm-49j7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49977.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49977"},{"type":"FIX","url":"https://github.com/AmauriC/tarteaucitron.js/commit/24b5464400ae2ff1ad96a092c629b9d632b9cc93"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/amauric/tarteaucitron.js","events":[{"introduced":"0"},{"fixed":"24b5464400ae2ff1ad96a092c629b9d632b9cc93"},{"fixed":"5f64df04384f491a5600f5796fa2a16131213d33"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"1.33.0"}]}}],"versions":["v1.32.0","v1.31.0","v1.30.0","v1.29.0","v1.28.0","v1.27.1","v1.27.0","v1.26.0","v1.25.0","v1.24.0","v1.23.0","v1.22.0","v1.21.0","v1.20.2","v1.20.1","v1.20.0","v1.19.0","v1.18.1","v1.18.0","v1.17.0","v1.16.1","v1.16.0","v1.15.0","v1.14.0","v1.13.1","v1.13.0","v1.12.0","v1.11.0","v1.10.0","v1.9.9","v1.9.8","v1.9.7","v1.9.6","v1.9.5","v1.9.4","v1.9.3","v1.9.1","20210329","20210306","20210305","v1.8.4","v1.8.3","v1.8.2","v1.8.1","v1.8","v1.6","v1.5","20200910","v1.4","v1.3","v1.2.0","v1.2","V1.2","v1.1","v1.0","v0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49977.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"}]}