CVE-2014-125128

published 8 Sep 2025 · updated 8 Sep 2025

'sanitize-html' prior to version 1.0.3 is vulnerable to Cross-site Scripting (XSS)

7.1HighCVSS 6.1EPSS 0%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.0.3.

'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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<1.0.31.0.3

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2014-125128 severity on Zeptric[![CVE-2014-125128](https://zeptric.io/badge/cve/CVE-2014-125128.svg)](https://zeptric.io/cve/CVE-2014-125128)