Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2019-25225: `sanitize-html` prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS)

31
Routine
MEDIUM 6.1UPGRADE

CVE-2019-25225 is a medium-severity flaw (CVSS 6.1) affecting sanitize-html. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score6.1 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.3% (top 81%)
CISA exploited listNo
WeaknessCWE-79
Published2025-09-08
Last modified2026-06-17
Publisher (CNA): Checkmarx · Vendor: apostrophecms

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

apostrophecms sanitize-html UPGRADE
Affected: < 2.0.0
Fixed in: 2.0.0
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls sanitize-html
2. UPGRADE to 2.0.0
npm install sanitize-html@">=2.0.0"
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2019-25225?

sanitize-html: upgrade to 2.0.0. Exact commands for each OS are on this page.

Is CVE-2019-25225 being exploited?

CVE-2019-25225 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2019-25225 affect?

CVE-2019-25225 affects sanitize-html. Severity is medium (CVSS 6.1). `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 attrib

How urgent is CVE-2019-25225?

Priority 31/100. Public exploit reference

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.