CVE-2025-31138
MEDIUMDescription
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. An attacker with high privileges could exploit this vulnerability to overlay malicious UI elements on top of legitimate content, trick users into interacting with hidden elements (clickjacking), or disrupt the intended functionality and accessibility of the website. This vulnerability is fixed in 1.20.1.
How to fix
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
Exploit Intelligence
Low risk: more likely to be exploited than 14% of all known CVEs.
References
Related Vulnerabilities
Other CWE-1021 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2021-21132 | Critical | 9.6 | 23% | - | Fix |
| CVE-2011-1244 | Medium | 5.8 | 15% | - | - |
| CVE-2013-2682 | Medium | 4.3 | 6.3% | - | - |
| CVE-2021-21139 | Medium | 6.5 | 4.7% | - | Fix |
| CVE-2017-11290 | Medium | 6.1 | 3.0% | - | - |
| CVE-2008-2716 | Medium | 5.0 | 3.0% | - | Fix |
Embed a live status badge for CVE-2025-31138
Markdown
[](https://tridentstack.com/cve/CVE-2025-31138)HTML
<a href="https://tridentstack.com/cve/CVE-2025-31138"><img src="https://tridentstack.com/cve/badge/CVE-2025-31138.svg" alt="CVE-2025-31138"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
Start freeThis product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-10-21.