# CVE-2022-25349: materialize-css cross-site scripting in autocomplete

Source: https://junglewise.ai/threats/cve-2022-25349-materialize-css-cross-site-scripting-in-autocomplete  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-03. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2022-25349 · Severity: low · CVSS 3.1 · Published 2022-05-03

Materialize CSS is a popular web framework used to build responsive user interfaces. The autocomplete component improperly escapes user input, allowing attackers to inject malicious JavaScript that executes in users' browsers when they interact with autocomplete fields. This could lead to session hijacking, credential theft, or defacement of the application interface.

Technologies: [materialize-css (npm)](https://junglewise.ai/threats/technologies/materialize-css). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2022-25349 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-25349 being exploited in the wild.

**How severe is CVE-2022-25349?** Low severity, with a CVSS score of 3.1, published 3 May 2022.

**Which products and versions are affected?** materialize-css (npm) SEMVER:introduced=0,last_affected=1.0.0.

**Is there a fix for CVE-2022-25349?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2022-25349 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2022-25349?** Check whether you run materialize-css (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a cross-site scripting (XSS) flaw in the autocomplete component caused by improper HTML escaping of user input. User-controlled data (such as &lt;not-a-tag /&gt;) is parsed as HTML/JavaScript and inserted directly into the DOM without sanitization. The attack is network-accessible and requires user interaction (typing in or interacting with the autocomplete field), with no authentication required. An attacker can inject arbitrary JavaScript to steal cookies, session tokens, or perform actions on behalf of the user. All versions up to 1.0.0 are affected.

## Affected products

- Dogfalo materialize-css all versions up to 1.0.0

## Identifiers

- CVE-2022-25349
- GHSA-7jvx-f994-rfw2

## Timeline

- 2022-05-03: disclosed
- 2022-05-01: advisory: NVD published

## References

- [https://github.com/Dogfalo/materialize](https://github.com/Dogfalo/materialize)

## Related threats

- [Materialize-css cross-site scripting in tooltip component](https://junglewise.ai/threats/cve-2019-11002-materialize-css-cross-site-scripting-in-tooltip-component)
- [Materialize-css Cross-site Scripting in autocomplete component](https://junglewise.ai/threats/cve-2019-11003-materialize-css-cross-site-scripting-in-autocomplete-component)
- [Materialize-css XSS in Toast feature](https://junglewise.ai/threats/cve-2019-11004-materialize-css-xss-in-toast-feature)
