patchminder
No public exploit found CVE-2025-48939

Vulnerabilityin AmauriC tarteaucitron.js.

Published 3 Jul 2025 · Updated 3 Jul 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Medium 4.2
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.2% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 1.22.0 or later
In plain words

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.

What to do now
  • Upgrade tarteaucitron.js to 1.22.0 or later.
  • Upgrade tarteaucitronjs (npm) to 1.22.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
tarteaucitron.js
before 1.22.0
1.22.0
CVE record
tarteaucitronjs (npm)
before 1.22.0
1.22.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 28 May 2025
    CVE ID reserved by GitHub_M.
  2. 3 Jul 2025
    Published in the CVE List.
  3. 3 Jul 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other tarteaucitron.js vulnerabilities

Same weakness:

All CWE-138 vulnerabilities

References
Cite this page

Patchminder. CVE-2025-48939: Vulnerability in AmauriC tarteaucitron.js. https://patchminder.com/cve/cve-2025-48939/ (accessed 5 December 2026).