CVE-2019-25225 json
sanitize-html is vulnerable to XSS through incomprehensive sanitization
published last yr. modified 4mo ago also GHSA-qhxp-v273-g94h , EUVD-2019-19375
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 20%
- public exploits
- 0
- none known
Summary
`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.
Patch / fix
- npm sanitize-html 2.0.0-beta
- apostrophecms sanitize-html 2.0.0
Is CVE-2019-25225 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-25225 updated cvss 6.1
sanitize-html: sanitize-html cross site scripting
-
Red Hat Multicluster Engine for Kubernetes multicluster-engine/console-mce-rhel8, multicluster-engine/console-mce-rhel9 Red Hat Network Observability Operator network-observability/network-observability-console-plugin-rhel9 Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/thanos-rhel9, rhacm2/console-rhel9, rhacm2/prometheus-rhel9 Red Hat Developer Hub 1 rhdh/rhdh-hub-rhel9, rhdh/rhdh-rhel9-operator Red Hat OpenShift Container Platform 4 openshift4/ose-console, openshift4/ose-thanos-rhel9, openshift4/ose-console-rhel9, openshift4/ose-prometheus-rhel9, openshift4/ose-monitoring-plugin-rhel9 Red Hat OpenShift Dev Spaces devspaces/traefik-rhel9, devspaces/dashboard-rhel8, devspaces/dashboard-rhel9, devspaces/configbump-rhel9, devspaces/imagepuller-rhel9, devspaces/devspaces-rhel9-operator, +1 morenot affected: vulnerable code not present
+2 more productsfewer
Red Hat OpenShift GitOps openshift-gitops-1/dex-rhel8, openshift-gitops-1/argocd-rhel8, openshift-gitops-1/argocd-rhel9, openshift-gitops-1/gitops-rhel8, openshift-gitops-1/must-gather-rhel8, openshift-gitops-1/argocd-agent-rhel8, +5 more Red Hat Quay 3 quay/quay-rhel8
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.28% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | sanitize-html | <2.0.0-beta |
2.0.0-beta |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/apostrophecms/sanitize-html/pull/156
web, issue-tracking, patch
-
github.com
/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3
patch, web
-
github.com
/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225
exploit, web, third-party-advisory
-
github.com
/apostrophecms/sanitize-html/issues/293
issue-tracking, web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-25225
advisory
-
github.com
/apostrophecms/sanitize-html
package
Sources
- CVE List CVE-2019-25225
- GitHub Advisory GHSA-qhxp-v273-g94h
- NVD CVE-2019-25225
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.