Skip to main content
CVE-2025-31476VulnerabilityPublished Updated

CVE-2025-31476: AmauriC tarteaucitron.js · Cross-site Scripting

Affects AmauriC tarteaucitron.jsSource CVE Database V5

0

Not known to be exploited · CVSS 4.8 Medium : upgrade to 1.20.1 when convenient.

Data as of 26 Oct 2026, 06:26 UTC

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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Apr 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.20.1.

Affected software

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

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

AI-suggested

Upgrade tarteaucitron.js to version 1.20.1 or later, where the vulnerability is fixed with improved URL validation and input neutralization.

Implement strict access controls and monitoring on CMS and source code repositories to prevent unauthorized or malicious high-privilege user actions.

Conduct regular code reviews and audits of any user-generated content or configuration inputs that may affect URL parameters or script execution.

Employ Content Security Policy (CSP) headers to restrict execution of inline scripts and limit the impact of potential XSS attacks.

Educate administrators and privileged users about the risks of inserting untrusted URLs or scripts into the site content.

Use web application firewalls (WAF) with rules tuned to detect and block suspicious URL schemes and script injection attempts.

Monitor logs for unusual activity related to URL modifications or privilege escalations that could indicate exploitation attempts.

Description

tarteaucitron.js is a compliant and accessible cookie banner. A vulnerability was identified in tarteaucitron.js, allowing a user with high privileges (access to the site's source code or a CMS plugin) to enter a URL containing an insecure scheme such as javascript:alert(). Before the fix, URL validation was insufficient, which could allow arbitrary JavaScript execution if a user clicked on a malicious link. An attacker with high privileges could insert a link exploiting an insecure URL scheme, leading to execution of arbitrary JavaScript code, theft of sensitive data through phishing attacks, or modification of the user interface behavior. This vulnerability is fixed in 1.20.1.

References

Community reviews

Loading reviews…