Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2025-31475: tarteaucitron.js is a compliant and accessible cookie banner

26
Routine
MEDIUM 5.5UPGRADE

CVE-2025-31475 is a medium-severity flaw (CVSS 5.5) affecting tarteaucitronjs. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score5.5 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededHigh
User interactionNone
EPSS exploit chance0.4% (top 71%)
CISA exploited listNo
WeaknessCWE-1321
Published2025-04-07
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: amauri

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

amauri tarteaucitronjs UPGRADE
Affected: < 1.20.1
Fixed in: 1.20.1
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls tarteaucitronjs
2. UPGRADE to 1.20.1
npm install tarteaucitronjs@">=1.20.1"
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2025-31475?

tarteaucitronjs: upgrade to 1.20.1. Exact commands for each OS are on this page.

Is CVE-2025-31475 being exploited?

CVE-2025-31475 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2025-31475 affect?

CVE-2025-31475 affects tarteaucitronjs. Severity is medium (CVSS 5.5). 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

How urgent is CVE-2025-31475?

Priority 26/100. No elevated risk signals yet.

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.