Security mailing lists by PureSourceCode

CVE-2026-49977

MEDIUM 4.3CVSS 3.1

tarteaucitron: 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed 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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.