logo

CVE-2017-16017 sanitize-html

Package

Manager: npm
Name: sanitize-html
Vulnerable Version: >=0 <1.2.3

Severity

Level: Medium

CVSS v3.1: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00264 pctl0.49692

Details

Cross-Site Scripting in sanitize-html Affected versions of `sanitize-html` are vulnerable to cross-site scripting. ## Proof of Concept: `<IMG SRC= onmouseover="alert('XSS');">` produces the following: `<img src="onmouseover="alert('XSS');"" />` This is definitely invalid HTML, but would suggest that it's being interpreted incorrectly by the parser. ## Recommendation Update to version 1.2.3 or later.

Metadata

Created: 2018-11-09T17:45:55Z
Modified: 2023-09-08T23:10:15Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/11/GHSA-wg96-3933-j2w5/GHSA-wg96-3933-j2w5.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-wg96-3933-j2w5
Finding: F008
Auto approve: 1