CVE-2025-48939

Source
https://cve.org/CVERecord?id=CVE-2025-48939
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-48939.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-48939
Aliases
Published
2025-07-03T16:26:31.304Z
Modified
2026-04-02T12:51:08.118728Z
Severity
  • 4.2 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:N/I:L/A:L CVSS Calculator
Summary
tarteaucitron.js vulnerable to DOM Clobbering via document.currentScript
Details

tarteaucitron.js is a compliant and accessible cookie banner. Prior to version 1.22.0, a vulnerability was identified in tarteaucitron.js where document.currentScript was accessed without verifying that it referenced an actual <script> element. If an attacker injected an HTML element, it could clobber the document.currentScript property. This causes the script to resolve incorrectly to an element instead of the <script> tag, leading to unexpected behavior or failure to load the script path correctly. This issue arises because in some browser environments, named DOM elements become properties on the global document object. An attacker with control over the HTML could exploit this to change the CDN domain of tarteaucitron. This issue has been patched in version 1.22.0.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48939.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-138"
    ]
}
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
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.22.0"
        }
    ]
}
Type
GIT
Repo
https://github.com/amauric/tarteaucitron.js
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

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.3
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-2025-48939.json"