CVE-2025-31476 Details
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.
A vulnerability in tarteaucitron.js, a cookie banner library, allows users with high privileges to inject URLs containing insecure schemes, such as 'javascript:alert()'. The vulnerability arises from inadequate URL validation, which could lead to the execution of arbitrary JavaScript if a user clicks on a malicious link. This issue could be exploited to steal sensitive data through phishing attacks or to alter user interface behavior. The vulnerability affects versions prior to 1.20.1.
Users can upgrade to tarteaucitron.js version 1.20.1 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.drupal.org/sa-contrib-2025-027 | CVE | Vendor Advisory |
| https://github.com/AmauriC/tarteaucitron.js/commit/2fa1e01023bce2e4b813200600bb1619d56ceb02 | [email protected] | Patch |
| https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-p5g4-v748-6fh8 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| amauri tarteaucitronjs | < 1.20.1 |
CPE
Remediation
| |
| tacjs project tacjs | >= 8.x-1.0, < 8.x-6.7 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 4, 2025 | Initial Analysis | [email protected] |
| Jun 12, 2025 | CVE Modified | CVE |
| Apr 7, 2025 | New CVE Received | [email protected] |