CVE-2025-48939
Amauri Tarteaucitronjs ≤ 1.22.0
Raw vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:N/I:L/A:LSummary
CVE-2025-48939 is a medium-severity Improper Neutralization of Special Elements (CWE-138) vulnerability in Amauri Tarteaucitronjs. Its CVSS base score is 4.2 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 7th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) and SA-8 (Security and Privacy Engineering Principles) — see the control section below for these in your framework.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-19885
Vulnerability Data
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
V1.3.12
Mitigating Controls (NIST 800-53 r5) AI
Input validation enforces neutralization or rejection of special syntactic elements before they reach a downstream interpreter.
Security engineering principles include requirements for safe input handling and neutralization of control characters.
Output filtering can neutralize special elements before they are interpreted by a receiving component.
Mitigating Controls (NIST CSF 2.0) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.
Secure SDLC practices directly require proper neutralization of inputs to prevent injection flaws.
Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.
Security testing can detect instances of CWE-138 but does not itself implement the neutralization controls.
Secure development life cycle mandates input validation and sanitization that directly prevents improper neutralization of special elements.
Application security requirements explicitly call for controls against injection and malformed input that cause CWE-138.
Secure system architecture principles reduce attack surface but do not prescribe the specific neutralization techniques needed for CWE-138.
Secure coding standards require proper escaping and neutralization of special elements, directly eliminating CWE-138.