Skip to content

CVE-2014-125128 '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>), allow...

MediumCVSS 6.1 EPSS 0.29%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
ubuntu/node-sanitize-html(Ubuntu:24.04) All versions No fix listed
ubuntu/node-sanitize-html(Ubuntu:26.04) All versions No fix listed
ubuntu/node-sanitize-html(Ubuntu:26.10) All versions No fix listed
apostrophecms sanitize-html < 1.0.3 1.0.3
npm sanitize-html(npm) < 1.0.3 1.0.3
ubuntu/node-sanitize-html(Ubuntu:22.04) All versions No fix listed

References