Skip to main content
CVE-2025-48939VulnerabilityPublished

CVE-2025-48939: AmauriC tarteaucitron.js · Improper Neutralization of Special Elements

Affects AmauriC tarteaucitron.jsSource CVE Database V5

0

Not known to be exploited · CVSS 4.2 Medium : upgrade to 1.22.0 when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
4.2Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 10% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.22.0
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:N/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Upgrade amauric/tarteaucitron.js to 1.22.0.

Affected software

ProductAffectedFixed in
GitHubamauric/tarteaucitron.jspkg:github/amauric/tarteaucitron.jsOther threatsAffected
  • <1.22.0
Fixed in
  • 1.22.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should immediately upgrade all instances of tarteaucitron.js to version 1.22.0 or later, where the vulnerability has been patched. Beyond upgrading, organizations should conduct thorough security reviews of their web applications to identify and remediate any HTML injection or cross-site scripting vulnerabilities that could enable an attacker to exploit this issue. Implementing Content Security Policy (CSP) headers can help restrict the domains from which scripts can be loaded, mitigating the risk of malicious CDN substitution. Additionally, validating and sanitizing all user inputs and HTML content before rendering is critical to prevent injection attacks. Organizations should also monitor their web traffic and script loading behavior for anomalies that might indicate exploitation attempts. Finally, maintaining an inventory of third-party JavaScript libraries and ensuring timely updates is essential for ongoing security hygiene.

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.

References

Community reviews

Loading reviews…