Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. materialize-css
  4. ›
  5. CVE-2022-25349

CVE-2022-25349: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

May 3, 2022

All versions of package materialize-css is 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.

References

  • github.com/Dogfalo/materialize/blob/v1-dev/js/autocomplete.js%23L285%20
  • github.com/advisories/GHSA-7jvx-f994-rfw2
  • nvd.nist.gov/vuln/detail/CVE-2022-25349
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2766498
  • snyk.io/vuln/SNYK-JS-MATERIALIZECSS-2324800

Code Behaviors & Features

Detect and mitigate CVE-2022-25349 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 1.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/materialize-css/CVE-2022-25349.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:39 +0000.