GitHub Advisory Database
GHSA-98f7-p5rc-jx67
Materialize-css vulnerable to Cross-site Scripting in tooltip component
Details
All versions of materialize-css are vulnerable to Cross-Site Scripting. The tooltip component does not sufficiently sanitize user input, allowing an attacker to execute arbitrary JavaScript code if the malicious input is rendered by a user.
Recommendation
No fix is currently available. Consider using an alternative module until a fix is made available.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | materialize-css | All versions up to and including 1.0.0 |
| npm | @materializecss/materialize | All versions before 1.1.0-alpha (fixed in 1.1.0-alpha) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-11002
- https://github.com/Dogfalo/materialize/issues/6286
- https://github.com/materializecss/materialize/pull/49
- https://github.com/Dogfalo/materialize
- https://github.com/advisories/GHSA-98f7-p5rc-jx67
- https://snyk.io/vuln/SNYK-JS-MATERIALIZECSS-174148
- https://www.npmjs.com/advisories/818