CVE-2025-31138: tarteaucitron.js is a compliant and accessible cookie banner
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 score | 5.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | High |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 82%) |
| CISA exploited list | No |
| Weakness | CWE-1021 |
| Published | 2025-04-07 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
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
- CVE-2026-22809 MEDIUM 4.4 UPGRADE tarteaucitron.js is a compliant and accessible cookie banner
- CVE-2025-48939 MEDIUM 4.2 UPGRADE tarteaucitron.js is a compliant and accessible cookie banner
- CVE-2025-31476 MEDIUM 4.8 UPGRADE UPGRADE tarteaucitron.js is a compliant and accessible cookie banner
- CVE-2025-31475 MEDIUM 5.5 UPGRADE tarteaucitron.js is a compliant and accessible cookie banner