CVE-2026-49977
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 ```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.
如何修補 CVE-2026-49977
要修補 CVE-2026-49977,請將受影響套件升級到下列已修補版本。
- —升級至 1.33.0 或更新版本
CVE-2026-49977 正在被利用嗎?
目前沒有被利用訊號。CVE-2026-49977 既不在 CISA KEV 也沒有最新的 EPSS 分數。
受影響套件(1)
- from 0, < 1.33.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |