CVE-2022-25887
Sanitize-html Vulnerable To REDoS Attacks
7.5
HIGH
CVSS 3.1
EPSS 0.10%
Description
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.
How to fix CVE-2022-25887
To remediate CVE-2022-25887, upgrade the affected package to a fixed version below.
- Debian/node-sanitize-html—upgrade to 2.7.1+~2.6.2-1 or later
- —upgrade to 2.7.1 or later
Is CVE-2022-25887 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 2.7.1+~2.6.2-1
- from 0, < 2.7.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |