sanitize-html
En bref
- Source
- NVD
- EPSS
- EPSS 0.27 % · centile 19 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Checkmarx
- Statut NVD
- Analyzed
Description
`sanitize-html` prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS). The `sanitizeHtml()` function in `index.js` does not sanitize content when using the custom `transformTags` option, which is intended to convert attribute values into text. As a result, malicious input can be transformed into executable code.
Faiblesses (CWE)
- CWE-79 — Injection de code indirecte (XSS)
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | Checkmarx |
| CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | NVD · 596c5446-0ce5-4ba2-aa66-48b3b757a647 (Secondary) |
Avis
- GHSA-qhxp-v273-g94h — sanitize-html is vulnerable to XSS through incomprehensive sanitization
Références européennes
- ENISA EUVD · EUVD-2019-19375
- GCVE · GCVE-0-2019-25225
Configurations affectées (CPE NVD)
cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*< 2.0.0
Produits affectés
| Produit | Versions |
|---|---|
| sanitize-html | affected 0 < 2.0.0-beta |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |