cve.bz

CVE-2022-25887

7.5 highEPSS 1.6%

High (7.5) in apostrophecms sanitize-html. EPSS 1.6% chance of exploitation in the next 30 days. Fixed in sanitize-html 2.7.1.

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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.6% chance of exploitation in the next 30 days; higher than 75% of CVEs (scores of 2026-10-31)
CWE
CWE-1333
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cgfm-xwp7-2cvrnpmsanitize-html<2.7.12.7.1

References

Check your stackJSON