sanitize-html
At a glance
- Source
- NVD
- EPSS
- EPSS 0.27 % Β· percentile 20 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Checkmarx
- NVD status
- Analyzed
Description
'sanitize-html' prior to version 1.0.3 is vulnerable to Cross-site Scripting (XSS). The function 'naughtyHref' doesn't properly validate the hyperreference (`href`) attribute in anchor tags (`<a>`), allowing bypasses that contain different casings, whitespace characters, or hexadecimal encodings.
Weaknesses (CWE)
- CWE-79 β Improper Neutralization of Input During Web Page Generation
References
- https://github.com/apostrophecms/sanitize-html/issues/1
- https://github.com/apostrophecms/sanitize-html/commit/889d4ec968e175f1905b2eb9d33f1fa89217cb02
- https://github.com/apostrophecms/sanitize-html/commit/423b90e06e1e85245eccedaabeb3a82840c6cd86
- https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2014/CVE-2014-125128
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| 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) |
European references
- ENISA EUVD Β· EUVD-2014-9819
- GCVE Β· GCVE-0-2014-125128
Affected configurations (NVD CPE)
cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*< 1.0.3
Affected products
| Product | Versions |
|---|---|
| sanitize-html | affected 0 < 1.0.3 |
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 |