Vulnerability record · CVE-2022-25887 · published 30 August 2022
CVE-2022-25887: Apostrophecms sanitize-html inefficient regular expression (redos) vulnerability
Apostrophecms · Sanitize Html
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.
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c | PatchThird Party Advisory |
| https://github.com/apostrophecms/sanitize-html/pull/557 | Issue TrackingPatchThird Party Advisory |
| https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102 | PatchThird Party Advisory |
| https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526 | PatchThird Party Advisory |
| https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c | PatchThird Party Advisory |
| https://github.com/apostrophecms/sanitize-html/pull/557 | Issue TrackingPatchThird Party Advisory |
| https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102 | PatchThird Party Advisory |
| https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526 | PatchThird Party Advisory |
Track CVE-2022-25887 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-25887), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.