Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

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

24
Routine
MEDIUM 5.5UPGRADE

CVE-2025-31138 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 user-controlled inputs for element dimensions (width and height) were not properly validated. This allowed an attacker with direct access to the site's source code or a CMS plugin to set values like 100%;height:100%;position:fixed;, potentially covering the entire viewport and facilitating clickjacking attacks. A

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.3% (top 82%)
CISA exploited listNo
WeaknessCWE-1021
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-31138?

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

Is CVE-2025-31138 being exploited?

CVE-2025-31138 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-31138 affect?

CVE-2025-31138 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 user-controlled inputs for element dimensions (width and height) were not properly validated. This allow

How urgent is CVE-2025-31138?

Priority 24/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.