5.4medium
Cross-site Scripting (XSS)
- Severity
- 5.4medium CVSS:3.1 by snyk
- Exploit likelihood
- 1.05% (higher than 65% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-7jvx-f994-rfw2
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| materialize-css | before unspecified | CVE List |
| materialize-css (npm) | up to 1.0.0 | GitHub Advisory Database |
| materializecss materialize | Not specified | NVD |
All scores
| snyk | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
Todas las versiones del paquete materialize-css son vulnerables a un ataque de tipo Cross-site Scripting (XSS) debido a un escape inapropiado de la entrada del usuario (como <no-a-tag />) que está siendo analizada como HTML/JavaScript, e insertada en el Modelo de Objetos del Documento (DOM). Esta vulnerabilidad puede ser explotada cuando la entrada del usuario es proporcionada al componente de autocompletar
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-25349 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7jvx-f994-rfw2 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-25349 changed 2026-06-17 | Public domain |