GHSA-wg96-3933-j2w5

Suggest an improvement
Source
https://github.com/advisories/GHSA-wg96-3933-j2w5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/11/GHSA-wg96-3933-j2w5/GHSA-wg96-3933-j2w5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wg96-3933-j2w5
Aliases
  • CVE-2017-16017
Published
2018-11-09T17:45:55Z
Modified
2023-11-08T03:58:59.888864Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Cross-Site Scripting in sanitize-html
Details

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.

Database specific
{
    "github_reviewed_at": "2020-06-16T22:00:25Z",
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-79"
    ],
    "github_reviewed": true,
    "nvd_published_at": null
}
References

Affected packages

npm / sanitize-html

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.3