{"id":"CVE-2026-49977","published":"2026-07-17T20:21:21Z","modified":"2026-07-20T19:11:28Z","title":"tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies","vendor":"AmauriC","product":"tarteaucitron.js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00354,"percentile":0.29475,"provenance":"source"},"cwes":[{"id":"CWE-285","name":"Improper Authorization"}],"references":[{"url":"https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-jxj7-g6gm-49j7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/AmauriC/tarteaucitron.js/commit/24b5464400ae2ff1ad96a092c629b9d632b9cc93","tags":["x_refsource_MISC"]},{"url":"https://github.com/AmauriC/tarteaucitron.js/releases/tag/v1.33.0","tags":["x_refsource_MISC"]},{"url":"https://www.drupal.org/sa-contrib-2026-040","tags":[]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":5.9},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"amauric","affectedVersions":[{"vendor":"AmauriC","product":"tarteaucitron.js","versions":["< 1.33.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-20T18:51:55.083424Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tarteaucitronjs","vulnerableRanges":["<1.33.0"],"patched":["1.33.0"],"from":["GHSA-jxj7-g6gm-49j7"],"provenance":"source"},{"ecosystem":"Packagist:https://packages.drupal.org/8","package":"drupal/tacjs","vulnerableRanges":["<6.8.0"],"patched":["6.8.0"],"from":["DRUPAL-CONTRIB-2026-040"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-45318","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-13252","published":"2025-01-09","fixed":"6.5.0","kev":false},{"cve":"CVE-2025-31476","published":"2025-04-07","fixed":"6.7.0","kev":false,"link":{"from":"CVE-2025-31476","to":"CVE-2026-49977","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:https://packages.drupal.org/8:drupal/tacjs","fromFixed":"6.7.0","toFixed":"6.8.0","daysApart":466},{"kind":"same-code","provenance":"machine","files":["tarteaucitron.min.js"],"commits":["https://github.com/AmauriC/tarteaucitron.js/commit/2fa1e01023bce2e4b813200600bb1619d56ceb02","https://github.com/AmauriC/tarteaucitron.js/commit/24b5464400ae2ff1ad96a092c629b9d632b9cc93"],"basis":"shared file"}]}},{"cve":"CVE-2026-49977","published":"2026-07-17","fixed":"6.8.0","kev":false}],"package":"Packagist:https://packages.drupal.org/8:drupal/tacjs"}}