Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
CVE-2022-25887 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c | CVE | PatchThird Party Advisory |
| https://github.com/apostrophecms/sanitize-html/pull/557 | CVE | Issue TrackingPatchThird Party Advisory |
| https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102 | CVE | PatchThird Party Advisory |
| https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526 | CVE | PatchThird Party Advisory |
| https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c | [email protected] | PatchThird Party Advisory |
| https://github.com/apostrophecms/sanitize-html/pull/557 | [email protected] | Issue TrackingPatchThird Party Advisory |
| https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102 | [email protected] | PatchThird Party Advisory |
| https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526 | [email protected] | PatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apostrophecms sanitize-html | < 2.7.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Aug 8, 2023 | CWE Remap | [email protected] |
| Sep 1, 2022 | Initial Analysis | [email protected] |