CVE-2025-48939
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.
Scoring
- Severity
- MEDIUM
- CVSS base score
- 4.2
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:N/I:L/A:L
- EPSS probability
- 0.18%
- CWE
- CWE-138
- Published
- 2025-07-03
- Last modified
- 2026-03-13
Affected products
- AmauriC tarteaucitron.js
Weakness type
Related vulnerabilities
- CVE-2026-55841 — Graylog: Fortigate syslog message parser can be exploited to modify or delete fields from the original message
- CVE-2026-26129 — M365 Copilot Information Disclosure Vulnerability
- CVE-2026-32178 — .NET Spoofing Vulnerability
- CVE-2026-20009 — Cisco Secure Firewall Adaptive Security Appliance SSH Partial Private Key Authentication Bypass Vulnerability
- CVE-2025-5878 — ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element
- CVE-2024-51500 — Failure to check for packets from the broadcast address allows potential DDoS amplification attack in Meshtastic firmware
- CVE-2024-38133 — Windows Kernel Elevation of Privilege Vulnerability
- CVE-2023-42117 — Exim Improper Neutralization of Special Elements Remote Code Execution Vulnerability