CVE-2026-49977
MEDIUM 4.3CVSS 3.1tarteaucitron: data-cookie attribute can be used to delete arbitrary cookies
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.
- Published
- 17 Jul 2026
- Last modified
- 17 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-285
- Also known as
- DRUPAL-CONTRIB-2026-040GHSA-jxj7-g6gm-49j7
- Sources
- NVDJSONOSV DRUPAL-CONTRIB-2026-040JSONOSV GHSA-jxj7-g6gm-49j7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist:https://packages.drupal.org/8 | drupal/tacjs | < 6.8.0 | 6.8.0 |
| OSV | npm | tarteaucitronjs | < 1.33.0 | 1.33.0 |
References
- https://github.com/AmauriC/tarteaucitron.js/commit/24b5464400ae2ff1ad96a092c629b9d632b9cc93
- https://github.com/AmauriC/tarteaucitron.js/releases/tag/v1.33.0
- https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-jxj7-g6gm-49j7 · WEB
- https://www.drupal.org/sa-contrib-2026-040 · WEB
- https://github.com/AmauriC/tarteaucitron.js · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 17 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Jul 2026)