tarteaucitron.js allows UI manipulation via unrestricted CSS injection
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-1021.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| AmauriC | tarteaucitron.js | before 1.20.1 | 1.20.1 | Patch available | CNA |
| — | tarteaucitronjs (npm) | before 1.20.1 | 1.20.1 | Patch available | GHSA-7524-3396-fqv3 |
- tarteaucitron.js VendorAmauriC Affected before 1.20.1 Fixed in 1.20.1 Patch available CNA
- tarteaucitronjs (npm) Vendor— Affected before 1.20.1 Fixed in 1.20.1 Patch available GHSA-7524-3396-fqv3
Remediation
- Fix · CNA tarteaucitron.js (AmauriC) Fixed in 1.20.1
- Fix · GHSA-7524-3396-fqv3 tarteaucitronjs (npm) Fixed in 1.20.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-31138
- 2026-10-03 Alias added: GHSA-7524-3396-fqv3
References
More AmauriC Tarteaucitronjs vulnerabilities
- TI-2025-22656 tarteaucitron.js allows prototype pollution via custom text injection CVSS 3.1MEDIUM 6.6
- TI-2025-22657 tarteaucitron.js allows url scheme injection via unfiltered inputs CVSS 3.1MEDIUM 4.8
- TI-2026-18326 tarteaucitron.js has Regular Expression Denial of Service (ReDoS) vulnerability CVSS 3.1MEDIUM 4.4
- TI-2025-31077 tarteaucitron.js vulnerable to DOM Clobbering via document.currentScript CVSS 3.1MEDIUM 4.2
Sources
- CVE-2025-31138 · CVE Program
- CVE-2025-31138 · NVD
- FIRST EPSS
- GHSA-7524-3396-fqv3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences