CVE-2025-31476
April 07, 2025
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.
Affected Packages
tarteaucitronjs (CDN_JS):
Affected version(s) >=1.0.0 <1.20.1Fix Suggestion:
Update to version 1.20.1https://github.com/AmauriC/tarteaucitron.js.git (GITHUB):
Affected version(s) >=v0.1 <v1.20.0Fix Suggestion:
Update to version v1.20.0tarteaucitronjs (NPM):
Affected version(s) >=1.0.0 <1.20.1Fix Suggestion:
Update to version 1.20.1tarteaucitronjs (NPM):
Affected version(s) >=1.0.0 <1.20.1Fix Suggestion:
Update to version 1.20.1Related ResourcesĀ (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
4.8
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
HIGH
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
HIGH
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
EPSS
Base Score:
0.21