CVE-2025-31138
published medium CVSS 3.1 · 5.5tarteaucitron.js allows UI manipulation via unrestricted CSS injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AmauriC | — | tarteaucitron.js< 1.20.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| AmauriC | tarteaucitron.js | < 1.20.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-1021 CWE-1021: Improper Restriction of Rendered UI Layers or Frames
References
2Provider assertions
2GitHub_M · cna
tarteaucitron.js allows UI manipulation via unrestricted CSS injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a3e71bbf5d99b930b8c1b85cf55eedf4cc1ed38431ad6cb3b3c52add47df0fed
- Ingested
- 23 Sep 2026, 08:44:43 UTC
- Source record
- Official CVE record