CVE-2026-49977

Source
https://cve.org/CVERecord?id=CVE-2026-49977
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49977.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-49977
Aliases
Published
2026-07-17T20:21:21.476Z
Modified
2026-07-22T05:29:54.204365020Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N CVSS Calculator
Summary
tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49977.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-285"
    ]
}
References

Affected packages

Git / github.com/amauric/tarteaucitron.js

Affected ranges

Type
GIT
Repo
https://github.com/amauric/tarteaucitron.js
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.33.0"
        }
    ]
}

Affected versions

Other
20200910
20210305
20210306
20210329
V1.*
V1.2
v0.*
v0.1
v1.*
v1.0
v1.1
v1.10.0
v1.11.0
v1.12.0
v1.13.0
v1.13.1
v1.14.0
v1.15.0
v1.16.0
v1.16.1
v1.17.0
v1.18.0
v1.18.1
v1.19.0
v1.2
v1.2.0
v1.20.0
v1.20.1
v1.20.2
v1.21.0
v1.22.0
v1.23.0
v1.24.0
v1.25.0
v1.26.0
v1.27.0
v1.27.1
v1.28.0
v1.29.0
v1.3
v1.30.0
v1.31.0
v1.32.0
v1.4
v1.5
v1.6
v1.8
v1.8.1
v1.8.2
v1.8.3
v1.8.4
v1.9.1
v1.9.3
v1.9.4
v1.9.5
v1.9.6
v1.9.7
v1.9.8
v1.9.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49977.json"