Vulnerability · Published May 1, 2022 · Assigned by snyk
CVE-2022-25349Cross-site Scripting (XSS)
Medium 5.4
In plain English
A medium-severity security flaw in materialize-css. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities).
Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)1.0%top 35.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
All versions of package materialize-css are vulnerable to Cross-site Scripting (XSS) due to improper escape of user input (such as <not-a-tag />) that is being parsed as HTML/JavaScript, and inserted into the Document Object Model (DOM). This vulnerability can be exploited when the user-input is provided to the autocomplete component.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | materialize-css | no fix listed | GHSA-7jvx-f994-rfw2 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | materialize-css | 0 – before unspecified |
References
- https://snyk.io/vuln/SNYK-JS-MATERIALIZECSS-2324800 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2766498 x_refsource_MISC
- https://github.com/Dogfalo/materialize/blob/v1-dev/js/autocomplete.js%23L285%20 x_refsource_MISC