### 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 ```html <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.
Update tarteaucitronjs to 1.33.0 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scantarteaucitron: data-cookie attribute can be used to delete arbitrary cookies affects tarteaucitronjs (npm). Severity is medium. ### 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 ```html <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.
AI coding agents often install or upgrade packages automatically in npm. A medium vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range | Fixed version |
|---|
### 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 ```html <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.
Update tarteaucitronjs to 1.33.0 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scantarteaucitron: data-cookie attribute can be used to delete arbitrary cookies affects tarteaucitronjs (npm). Severity is medium. ### 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 ```html <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.
AI coding agents often install or upgrade packages automatically in npm. A medium vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range | Fixed version |
|---|
| tarteaucitronjsnpm | <1.33.0 | 1.33.0 |
|---|
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard| tarteaucitronjsnpm | <1.33.0 | 1.33.0 |
|---|
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard