CVE-2025-31138:
tarteaucitron.js allows UI manipulation via unrestricted CSS injection
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.08463%
CWE
Published
4/7/2025
Updated
4/7/2025
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
tarteaucitronjs | npm | < 1.20.1 | 1.20.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in all service handlers that construct iframe style attributes using unvalidated width/height parameters. The security patch consistently modifies these locations by adding parseInt
validation, indicating they were previously vulnerable to CSS injection. Each service function (e.g., tarteaucitron.services.*
) directly processes user-controlled dimension values and injects them into style attributes without sanitization in vulnerable versions, making them primary exploitation points. The high confidence comes from the direct correlation between patch locations and the vulnerability description of CSS injection via dimension parameters.