CVE-2025-31138

CVE-2025-31138 is a medium-severity vulnerability in Amauri Tarteaucitronjs with a CVSS 3.x base score of 5.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-1021.

Key facts

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.

Frequently asked questions

What is CVE-2025-31138?
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 severe is CVE-2025-31138?
CVE-2025-31138 has a CVSS 3.x base score of 5.5, rated medium severity. It is exploitable over network with low attack complexity, requires high privileges and no user interaction. Impact on confidentiality is low, integrity low, and availability none.
Is CVE-2025-31138 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (14th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2025-31138?
CVE-2025-31138 affects Amauri Tarteaucitronjs. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2025-31138?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2025-31138 have an EU (EUVD) identifier?
Yes. CVE-2025-31138 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-10043.
When was CVE-2025-31138 published?
CVE-2025-31138 was published on 2025-04-07 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Amauri Tarteaucitronjs

All CVEs affecting Amauri Tarteaucitronjs →

Other CWE-1021 vulnerabilities

Browse all CWE-1021 vulnerabilities →