CVE-2022-25887Regex Denial of Service in Sanitize-html

Severity
7.5HIGHNVD
CNA5.3
EPSS
0.4%
top 36.43%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedAug 30
Latest updateApr 28

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages3 packages

CVEListV5apostrophecms/sanitize-htmlunspecified2.7.1

Patches

🔴Vulnerability Details

4
OSV
Sanitize-html Vulnerable To REDoS Attacks2022-08-31
GHSA
Sanitize-html Vulnerable To REDoS Attacks2022-08-31
CVEList
Regular Expression Denial of Service (ReDoS)2022-08-30
OSV
CVE-2022-25887: The package sanitize-html before 22022-08-30

📋Vendor Advisories

3
Ubuntu
Jupyter Notebook vulnerability2025-04-28
Red Hat
sanitize-html: insecure global regular expression replacement logic may lead to ReDoS2022-08-30
Debian
CVE-2022-25887: node-sanitize-html - The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Deni...2022
CVE-2022-25887 — Regex Denial of Service | cvebase