GHSA-cgfm-xwp7-2cvr · Severity: high · Ecosystem: npm — Sanitize-html Vulnerable To REDoS Attacks
The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular expression replacement logic of HTML comment removal.
Conclusion & alert: CVE-2022-25887 is rated Moderate Risk (43.7/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 1.11%). Core evidence: EPSS rose +1.01% over the last day, indicating growing attacker interest. Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
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.10% | 1.11% | +1.01% |
| 2 | 2026-06-06 | 0.42% | 0.10% | -0.33% |
| 3 | 2026-02-08 | — | 0.42% | — |
Full EPSS history (13 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.3 | 3.1 | MEDIUM |
|
3.9 | 1.4 | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-cgfm-xwp7-2cvr · Severity: high · Ecosystem: npm — Sanitize-html Vulnerable To REDoS Attacks
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2022-25887 not yet assigned 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-2022-25887 |
redhat
|
low | — | https://access.redhat.com/security/cve/CVE-2022-25887 |
ubuntu
|
medium | CVE-2022-25887 medium priority: Ubuntu including 2 source packages (jupyter-notebook, node-sanitize-html), 26 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): ignored 8, DNE 6, released 5, needs-triage 4, not-affected 2, needed 1. | https://ubuntu.com/security/CVE-2022-25887 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| apostrophecms | sanitize-html | < 2.7.1 | cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c | Patch Third Party Advisory |
| https://github.com/apostrophecms/sanitize-html/pull/557 | Issue Tracking Patch Third Party Advisory |
| https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102 | Patch Third Party Advisory |
| https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526 | Patch Third Party Advisory |