CVE-2025-31475 Details
Description
tarteaucitron.js is a compliant and accessible cookie banner. A vulnerability was identified in tarteaucitron.js prior to 1.20.1, where the addOrUpdate function, used for applying custom texts, did not properly validate input. This allowed an attacker with direct access to the site's source code or a CMS plugin to manipulate JavaScript object prototypes, leading to potential security risks such as data corruption or unintended code execution. An attacker with high privileges could exploit this vulnerability to modify object prototypes, affecting core JavaScript behavior, cause application crashes or unexpected behavior, or potentially introduce further security vulnerabilities depending on the application's architecture. This vulnerability is fixed in 1.20.1.
A prototype pollution vulnerability has been identified in tarteaucitron.js versions prior to 1.20.1. The issue arises in the addOrUpdate function, which is responsible for applying custom texts. This function fails to properly validate input, allowing an attacker with direct access to the site's source code or a CMS plugin to manipulate JavaScript object prototypes. Such manipulation could lead to security risks including data corruption or unintended code execution. An attacker with high privileges could exploit this vulnerability to modify object prototypes, disrupt core JavaScript functionality, cause application crashes or unexpected behavior, and potentially introduce additional security vulnerabilities depending on the application's architecture.
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.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| amauri tarteaucitronjs | < 1.20.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | Initial Analysis | [email protected] |
| Apr 7, 2025 | New CVE Received | [email protected] |