Vulnerability 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 Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Apostrophecms | Sanitize-Html | < 2.7.1 |
Related Weaknesses (CWE)
References
- https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b76PatchThird Party Advisory
- https://github.com/apostrophecms/sanitize-html/pull/557Issue TrackingPatchThird Party Advisory
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102PatchThird Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526PatchThird Party Advisory
- https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b76PatchThird Party Advisory
- https://github.com/apostrophecms/sanitize-html/pull/557Issue TrackingPatchThird Party Advisory
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102PatchThird Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526PatchThird Party Advisory
FAQ
What is CVE-2022-25887?
CVE-2022-25887 is a vulnerability with a CVSS score of 5.3 (MEDIUM). 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 severe is CVE-2022-25887?
CVE-2022-25887 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-25887?
Check the references section above for vendor advisories and patch information. Affected products include: Apostrophecms Sanitize-Html.