CVE-2022-25349 Cross-site Scripting (XSS)
Attackers can execute arbitrary scripts via the autocomplete component due to improper input escaping in the materialize-css library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-25349?
CVE-2022-25349 is a medium-severity cross-site scripting vulnerability in materialize-css, published on 1 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
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.
Weakness: CWE-79
Which versions are affected by CVE-2022-25349?
2 open source packages ship an affected version, including materialize-css. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
materialize-css npm | All versions to 1.0.0 | None |
materialize-css npm | All versions to 1.0.0 | None |
Products include Materializecss Materialize.
How do I fix CVE-2022-25349?
No fix has been published for CVE-2022-25349 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-25349 being exploited?
There is no known exploitation of CVE-2022-25349 in the wild and no public exploit code.
Other vulnerabilities in materialize-css
Sources
Also known as GHSA-7jvx-f994-rfw2.