GHSA-4hwx-xcc5-2hfc · Severity: medium · Ecosystem: npm — tarteaucitron.js allows prototype pollution via custom text injection
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.
Conclusion & alert: CVE-2025-31475 is rated Moderate Risk (45.5/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 0.52%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-19 | 0.45% | 0.52% | +0.07% |
| 2 | 2026-05-16 | 1.33% | 0.45% | -0.88% |
| 3 | 2026-02-01 | — | 1.33% | — |
Full EPSS history (10 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.5 | 3.1 | MEDIUM |
|
2.3 | 2.7 | [email protected] |
| 6.6 | 3.1 | MEDIUM |
|
2.3 | 3.7 | [email protected] |
GHSA-4hwx-xcc5-2hfc · Severity: medium · Ecosystem: npm — tarteaucitron.js allows prototype pollution via custom text injection
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| amauri | tarteaucitronjs | < 1.20.1 | cpe:2.3:a:amauri:tarteaucitronjs:*:*:*:*:*:node.js:*:* |