CVE-2019-25225

Exp

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

Published: 2025-09-08 Last update: 2025-09-19 Assigner: 596c5446-0ce5-4ba2-aa66-48b3b757a647 Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647

Conclusion & alert: CVE-2019-25225 is rated Exploit Available (50/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.25%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2019-25225

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2019-25225

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.07% 0.25% +0.18%
2 2026-05-25 0.03% 0.07% +0.04%
3 2026-02-04 0.03%

Full EPSS history (5 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2019-25225

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.1 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 2.7 596c5446-0ce5-4ba2-aa66-48b3b757a647

Weakness enumeration for CVE-2019-25225

GitHub Security Advisory for CVE-2019-25225

GHSA-qhxp-v273-g94h · Severity: medium · Ecosystem: npm — sanitize-html is vulnerable to XSS through incomprehensive sanitization

OS Trackers for CVE-2019-25225

vendor priority summary link
debian unimportant CVE-2019-25225 unimportant priority: Debian including 1 source packages (node-sanitize-html), 4 status rows across 4 suites (bookworm, forky, sid, trixie): resolved 4. https://security-tracker.debian.org/tracker/CVE-2019-25225
redhat medium https://access.redhat.com/security/cve/CVE-2019-25225
ubuntu medium CVE-2019-25225 medium priority: Ubuntu including 1 source packages (node-sanitize-html), 5 status rows across 5 suites (jammy, noble, plucky, questing, upstream): needs-triage 3, ignored 1, not-affected 1. https://ubuntu.com/security/CVE-2019-25225

Affected software / configurations for CVE-2019-25225

Vendor Product Version Raw CPE
apostrophecms sanitize-html < 2.0.0 cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*

References for CVE-2019-25225

cvelogic Threat Intelligence