CVE-2022-2130: Cross-site Scripting in Microweber
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.9309%
CWE
Published
6/21/2022
Updated
1/27/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
microweber/microweber | composer | <= 1.2.17 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The key vulnerability stems from the 'temp' function handling user input (val) without adequate sanitization. The patch adds 'val = (val || '').trim()', indicating prior lack of input cleansing. Since this function directly modifies CSS rules applied to the document, unescaped input could lead to script execution via CSS injection vectors (e.g., 'javascript:' URIs or expression() in legacy browsers). The CWE-79 alignment and the nature of the fix (added sanitization) strongly point to this function as the vulnerable entry point.