{"id":"CVE-2026-49977","state":"PUBLISHED","title":"tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies","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.","publishedAt":"2026-07-17T20:21:21.476Z","updatedAt":"2026-07-20T19:11:28.659Z","severity":{"score":4.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["AmauriC tarteaucitron.js"],"affected":[{"vendor":"AmauriC","product":"tarteaucitron.js","versions":[{"version":"< 1.33.0","status":"affected"}]}],"references":["https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-jxj7-g6gm-49j7","https://github.com/AmauriC/tarteaucitron.js/commit/24b5464400ae2ff1ad96a092c629b9d632b9cc93","https://github.com/AmauriC/tarteaucitron.js/releases/tag/v1.33.0","https://www.drupal.org/sa-contrib-2026-040"],"weaknesses":["CWE-285"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/49xxx/CVE-2026-49977.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-49977","state":"PUBLISHED","datePublished":"2026-07-17T20:21:21.476Z","dateUpdated":"2026-07-20T19:11:28.659Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-02T18:30:51.281Z"},"containers":{"cna":{"title":"tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"AmauriC","product":"tarteaucitron.js","versions":[{"version":"< 1.33.0","status":"affected"}]}],"references":[{"url":"https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-jxj7-g6gm-49j7","name":"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","name":"https://github.com/AmauriC/tarteaucitron.js/commit/24b5464400ae2ff1ad96a092c629b9d632b9cc93","tags":["x_refsource_MISC"]},{"url":"https://github.com/AmauriC/tarteaucitron.js/releases/tag/v1.33.0","name":"https://github.com/AmauriC/tarteaucitron.js/releases/tag/v1.33.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-285","lang":"en","description":"CWE-285: Improper Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-17T20:21:21.476Z"},"source":{"advisory":"GHSA-jxj7-g6gm-49j7","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://www.drupal.org/sa-contrib-2026-040"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-07-17T20:23:26.752Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-20T18:51:55.083424Z","id":"CVE-2026-49977","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-20T19:11:28.659Z"}}]}}}