tarteaucitron: data-cookie attribute can be used to delete arbitrary cookies
Summary
tarteaucitron provides a list of cookies and buttons to delete them. If an attacker can write HTML with data attributes, they could create an element that silently deletes a cookie when clicked and trick a user to delete this cookie.
Details
tarteaucitron.cookie.purge() is called on any element with the purgeBtn class. It does not check if the element is a legitimate tarteaucitron button or if the cookie corresponds to a service handled by tarteaucitron.
PoC
<a class="purgeBtn" data-cookie="foo">Click me!</a>
If someone has a cookie with this name and clicks on the link, the cookie is silently deleted.
Impact
The impact is limited because this only works on cookies without HttpOnly=true and the attacker has to know the name of the cookie.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| Composer-Paket | drupal/tacjs | < 6.8.0 | 6.8.0 |
| Drupal-Modul | drupal/tacjs | < 6.8.0 | 6.8.0 |
| npm-Paket | tarteaucitronjs | < 1.33.0 | 1.33.0 |
Verweise
- CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N- Schwäche (CWE)
CWE-285- Plattform
- Composer, Drupal, npm
- Paket
drupal/tacjs, tarteaucitronjs- Veröffentlicht
- 03.06.2026
- Aktualisiert
- 17.11.2026 20:17
Quellen und Lizenzen
OSV / GitHub Advisory Database - GHSA-jxj7-g6gm-49j7 - CC BY 4.0
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2026-040 - CC BY-SA 2.0; code GPL-2.0-or-later
Schwachstellenhistorie: drupal/tacjs
Alle veröffentlichten Schwachstellen dieses Pakets (Composer-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 4
- Erste → letzte
- 06.2023 06.2026
- Ohne Fix
- 0
- In Angriffen ausgenutzt
- 0
Verteilung nach Schweregrad
- Mittel 2
- Nicht bewertet 2
Veröffentlichungen pro Jahr
- 2023: 1
- 2024: 1
- 2025: 1
- 2026: 1
-
tarteaucitron: data-cookie attribute can be used to delete arbitrary cookies dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.