CVE-2022-25349:
materialize-css vulnerable to cross-site Scripting (XSS) due to improper escape of user input
5.4
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
5/3/2022
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
materialize-css | npm | <= 1.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability documentation specifically references the autocomplete component and improper input escaping in autocomplete.js. While the exact line number reference is broken, materialize-css's autocomplete implementation uses _renderDropdown to create suggestion elements. The PoC demonstrates XSS via suggestion labels containing HTML payloads, indicating the rendering function inserts content without proper sanitization. The use of .html() instead of .text() for user-controlled input would explain the vulnerability.