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.
Advisories
Source ID Title
EUVD EUVD EUVD-2025-10042 tarteaucitron.js allows prototype pollution via custom text injection
Github GHSA Github GHSA GHSA-4hwx-xcc5-2hfc tarteaucitron.js allows prototype pollution via custom text injection
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Tue, 21 Oct 2025 14:00:00 +0000

Type Values Removed Values Added
First Time appeared Amauri
Amauri tarteaucitronjs
CPEs cpe:2.3:a:amauri:tarteaucitronjs:*:*:*:*:*:node.js:*:*
Vendors & Products Amauri
Amauri tarteaucitronjs

Mon, 07 Apr 2025 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 07 Apr 2025 15:00:00 +0000

Type Values Removed Values Added
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.
Title tarteaucitron.js allows prototype pollution via custom text injection
Weaknesses CWE-1321
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-04-07T15:49:42.400Z

Reserved: 2025-03-28T13:36:51.296Z

Link: CVE-2025-31475

cve-icon Vulnrichment

Updated: 2025-04-07T15:44:51.799Z

cve-icon NVD

Status : Analyzed

Published: 2025-04-07T15:15:44.220

Modified: 2025-10-21T13:57:10.537

Link: CVE-2025-31475

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.