{"id":"GHSA-7jvx-f994-rfw2","summary":"materialize-css vulnerable to cross-site Scripting (XSS) due to improper escape of user input","details":"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.","aliases":["CVE-2022-25349"],"modified":"2023-11-08T04:08:46.546659Z","published":"2022-05-03T00:00:45Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-05-03T21:09:12Z","nvd_published_at":"2022-05-01T16:15:00Z","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25349"},{"type":"PACKAGE","url":"https://github.com/Dogfalo/materialize"},{"type":"WEB","url":"https://github.com/Dogfalo/materialize/blob/v1-dev/js/autocomplete.js%23L285%20"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2766498"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-MATERIALIZECSS-2324800"}],"affected":[{"package":{"name":"materialize-css","ecosystem":"npm","purl":"pkg:npm/materialize-css"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7jvx-f994-rfw2/GHSA-7jvx-f994-rfw2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"}]}