CVE-2019-25225

published 8 Sep 2025 · updated 8 Sep 2025

`sanitize-html` prior to version 2.0.0-beta 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 2.0.0-beta.

`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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<2.0.0-beta2.0.0-beta

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

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