Security Resilience

CVE-2025-48939

Amauri Tarteaucitronjs ≤ 1.22.0

Public PoC
Published
03 July 2025
Modified
17 June 2026
Patch / advisory
CVSS Score v3.1 4.2
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:N/I:L/A:L
EPSS Score 0.0020 10th percentile
Risk Priority 30 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

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, ranked at the 10th 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

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

CVEs Like This One

CVE-2025-31138Same product: Amauri Tarteaucitronjs
CVE-2025-31475Same product: Amauri Tarteaucitronjs
CVE-2026-22809Same product: Amauri Tarteaucitronjs
CVE-2025-31476Same product: Amauri Tarteaucitronjs
CVE-2024-35694Same vendor: Amauri
CVE-2023-28932Same vendor: Amauri
CVE-2025-4955Same vendor: Amauri
CVE-2024-13888Same vendor: Amauri
CVE-2023-26010Same vendor: Amauri
CVE-2023-22702Same vendor: Amauri

Affected Assets

amauri
tarteaucitronjs
≤ 1.22.0

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

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 (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect instances of CWE-138 but does not itself implement the neutralization controls.

prevents

Secure coding standards require proper escaping and neutralization of special elements, directly eliminating CWE-138.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-138, a class-level weakness, and none of its children carries one either.

References