Advisory

GHSA-wg96-3933-j2w5

Also known as: CVE-2017-16017

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-11-09 17:45 UTC
Modified
2023-11-08 03:58 UTC

Affected packages and fixes

sanitize-html

npm · All systems

Affected

  • introduced 0, fixed 1.2.3 (semver)

Fixed versions

1.2.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences