Read the docs
TI-2025-22656 Aliases CVE-2025-31475GHSA-4hwx-xcc5-2hfc

tarteaucitron.js allows prototype pollution via custom text injection

Priority LOW 31CWE-1321Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
Low · Low · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00351 28th percentileScored 2026-11-07
Fix Fixed tarteaucitron.js (AmauriC): 1.20.1tarteaucitronjs (npm): 1.20.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
AmauriCtarteaucitron.jsbefore 1.20.11.20.1Patch availableCNA
—tarteaucitronjs (npm)before 1.20.11.20.1Patch availableGHSA-4hwx-xcc5-2hfc
  • tarteaucitron.js VendorAmauriC Affected before 1.20.1 Fixed in 1.20.1 Patch available CNA
  • tarteaucitronjs (npm) Vendor— Affected before 1.20.1 Fixed in 1.20.1 Patch available GHSA-4hwx-xcc5-2hfc

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:amauri:tarteaucitronjs:*:*:*:*:*:node.js:*:*before 1.20.1VulnerableAmauriC
  • cpe:2.3:a:amauri:tarteaucitronjs:*:*:*:*:*:node.js:*:* Versions before 1.20.1 Vulnerable ·AmauriC

Remediation

  • Fix · CNA tarteaucitron.js (AmauriC) Fixed in 1.20.1
  • Fix · GHSA-4hwx-xcc5-2hfc tarteaucitronjs (npm) Fixed in 1.20.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-31475
  2. 2026-10-03 Alias added: GHSA-4hwx-xcc5-2hfc

References

  • TI-2025-22399 tarteaucitron.js allows UI manipulation via unrestricted CSS injection CVSS 3.1MEDIUM 6.6
  • TI-2025-22657 tarteaucitron.js allows url scheme injection via unfiltered inputs CVSS 3.1MEDIUM 4.8
  • TI-2026-18326 tarteaucitron.js has Regular Expression Denial of Service (ReDoS) vulnerability CVSS 3.1MEDIUM 4.4
  • TI-2025-31077 tarteaucitron.js vulnerable to DOM Clobbering via document.currentScript CVSS 3.1MEDIUM 4.2

Sources