CVE-2025-48939
CVE-2025-48939 is a medium-severity vulnerability in Amauri Tarteaucitronjs with a CVSS 3.x base score of 4.2. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-138.
Key facts
- Severity: Medium (CVSS 3.x base score 4.2)
- EPSS exploit prediction: 0% (7th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-19885
- Weakness: CWE-138
- Affected product: Amauri Tarteaucitronjs
- Published:
- Last modified:
Description
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2025-48939?
- CVE-2025-48939 has a CVSS 3.x base score of 4.2, rated medium severity. It is exploitable over local access with low attack complexity, requires high privileges and user interaction. Impact on confidentiality is none, integrity low, and availability low.
- Is CVE-2025-48939 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (7th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-48939?
- CVE-2025-48939 affects Amauri Tarteaucitronjs. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2025-48939?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2025-48939 have an EU (EUVD) identifier?
- Yes. CVE-2025-48939 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-19885.
- When was CVE-2025-48939 published?
- CVE-2025-48939 was published on 2025-07-03 and last updated on 2026-06-17.
References
- https://github.com/AmauriC/tarteaucitron.js/commit/230a3b69d363837acfa895823d841e0608826ba3
- https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-q43x-79jr-cq98
Affected products (1)
- cpe:2.3:a:amauri:tarteaucitronjs:*:*:*:*:*:node.js:*:*
More vulnerabilities in Amauri Tarteaucitronjs
- CVE-2025-31475 — Medium (CVSS 5.5): tarteaucitron.js is a compliant and accessible cookie banner. A vulnerability was identified in tarteaucitron.js prior…
- CVE-2025-31138 — Medium (CVSS 5.5): tarteaucitron.js is a compliant and accessible cookie banner. A vulnerability was identified in tarteaucitron.js prior…
- CVE-2025-31476 — Medium (CVSS 4.8): tarteaucitron.js is a compliant and accessible cookie banner. A vulnerability was identified in tarteaucitron.js,…
- CVE-2026-22809 — Medium (CVSS 4.4): tarteaucitron.js is a compliant and accessible cookie banner. Prior to 1.29.0, a Regular Expression Denial of Service…
All CVEs affecting Amauri Tarteaucitronjs →
Other CWE-138 vulnerabilities
- CVE-2023-42117 — Critical (CVSS 9.8): Exim Improper Neutralization of Special Elements Remote Code Execution Vulnerability. This vulnerability allows remote…
- CVE-2024-38133 — High (CVSS 7.8): Windows Kernel Elevation of Privilege Vulnerability
- CVE-2026-26129 — High (CVSS 7.5): Improper neutralization of special elements used in a command ('command injection') in M365 Copilot allows an…
- CVE-2026-32178 — High (CVSS 7.5): Improper neutralization of special elements in .NET allows an unauthorized attacker to perform spoofing over a network.
- CVE-2022-0024 — High (CVSS 7.2): A vulnerability exists in Palo Alto Networks PAN-OS software that enables an authenticated network-based PAN-OS…
- CVE-2026-20009 — Medium (CVSS 5.3): A vulnerability in the implementation of the proprietary SSH stack with SSH key-based authentication in Cisco Secure…