CVE & CISA-KEV Catalog

CVE-2025-31138

MEDIUM
5.5
CVSS v3
NVD

Description

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 Available
tarteaucitronjsNVD
Affected:< 1.20.1Fixed in:1.20.1CVE-2025-31138derived from NVD

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

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredHigh
User InteractionNone
ScopeChanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N

Exploit Intelligence

0.23%probability of exploitation in 30 days
14thpercentile

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

CVESeverityCVSSEPSSExploitedFix
CVE-2021-21132Critical9.623%-Fix
CVE-2011-1244Medium5.815%--
CVE-2013-2682Medium4.36.3%--
CVE-2021-21139Medium6.54.7%-Fix
CVE-2017-11290Medium6.13.0%--
CVE-2008-2716Medium5.03.0%-Fix
Embed a live status badge for CVE-2025-31138
CVE-2025-31138 severity badge

Markdown

[![CVE-2025-31138](https://tridentstack.com/cve/badge/CVE-2025-31138.svg)](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 free

This 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.