CVE-2019-25225

NameCVE-2019-25225
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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-sanitize-html (PTS)bookworm2.8.0+~2.6.2-1fixed
forky, sid, trixie2.14.0+~2.13.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-sanitize-htmlsource(unstable)(not affected)

Notes

- node-sanitize-html <not-affected> (Fixed before initial upload to the archive)
https://github.com/apostrophecms/sanitize-html/issues/293
https://github.com/apostrophecms/sanitize-html/pull/156
https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3 (2.0.0)

Search for package or bug name: Reporting problems