CVE-2019-25225

MEDIUM
6.1
CVSS Score
Published: September 8, 2025 at 10:02 AM UTC
Updated: June 17, 2026 at 02:31 AM UTC
1 product affected across 1 vendorSanitize Html

Using N/A by N/A?

Get instant alerts when new vulnerabilities affect N/A - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 0.3%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

References (4)

ExploitThird Party Advisory
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225
Issue TrackingVendor Advisory
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
https://github.com/apostrophecms/sanitize-html/issues/293
Issue TrackingPatch
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
https://github.com/apostrophecms/sanitize-html/pull/156

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.1MEDIUMCheckmarx
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card