# CVE-2022-25349: Cross-site Scripting (XSS)

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-05-01T15:30:22.561Z
- Modified: 2026-06-17T04:33:26.300Z
- Also known as: GHSA-7jvx-f994-rfw2
- Weaknesses: CWE-79
- Assigned by: snyk

## Description

All versions of package materialize-css are vulnerable to Cross-site Scripting (XSS) due to improper escape of user input (such as &lt;not-a-tag /&gt;) 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.

(As written by CVE List.)

## Affected

- materialize-css: before unspecified
- materialize-css (npm): up to 1.0.0
- materializecss materialize: no versions given

## Every score

- snyk: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://snyk.io/vuln/SNYK-JS-MATERIALIZECSS-2324800> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2766498> (exploit, third-party-advisory, web)
- <https://github.com/Dogfalo/materialize/blob/v1-dev/js/autocomplete.js%23L285%20> (broken-link, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25349> (advisory)
- <https://github.com/Dogfalo/materialize> (package)

## Sources

- CVE List: [CVE-2022-25349](https://www.cve.org/CVERecord?id=CVE-2022-25349), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-7jvx-f994-rfw2](https://github.com/advisories/GHSA-7jvx-f994-rfw2), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-25349](https://nvd.nist.gov/vuln/detail/CVE-2022-25349), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25349 · Whole record: https://cve.day/CVE-2022-25349.json · Rebuilt by cve.day 2026-11-25T22:58:11.324Z
