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.
Remediation
References
https://github.com/Dogfalo/materialize/blob/v1-dev/js/autocomplete.js%23L285%20
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2766498
https://snyk.io/vuln/SNYK-JS-MATERIALIZECSS-2324800
Related Vulnerabilities
CVE-2017-20162 Vulnerability in npm package ms
CVE-2022-21676 Vulnerability in npm package engine.io
CVE-2021-23327 Vulnerability in maven package org.webjars.npm:apexcharts
CVE-2023-38695 Vulnerability in npm package @simonsmith/cypress-image-snapshot
CVE-2021-31684 Vulnerability in maven package net.minidev:json-smart