GHSA-q43x-79jr-cq98 · Severity: medium · Ecosystem: npm — tarteaucitron.js vulnerable to DOM Clobbering via document.currentScript
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.
Conclusion & alert: CVE-2025-48939 is rated Exploit Available (50/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.09%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-04-29 | 0.01% | 0.09% | +0.07% |
| 2 | 2025-07-04 | — | 0.01% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 4.2 | 3.1 | MEDIUM |
|
1.1 | 2.7 | [email protected] |
GHSA-q43x-79jr-cq98 · Severity: medium · Ecosystem: npm — tarteaucitron.js vulnerable to DOM Clobbering via document.currentScript
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| amauri | tarteaucitronjs | < 1.22.0 | cpe:2.3:a:amauri:tarteaucitronjs:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/AmauriC/tarteaucitron.js/commit/230a3b69d363837acfa895823d841e0608826ba3 | Patch |
| https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-q43x-79jr-cq98 | Exploit Patch Vendor Advisory |