CVE-2022-25887
HIGHCVSS 7.5/10EPSS 1.11%
Last modified
CVE-2022-25887 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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.. EPSS estimates a 1.11% chance of exploitation in the next 30 days.
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Apostrophecms | Sanitize-Html | < 2.7.1 |
References
- https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23cPatch, Third Party Advisory
- https://github.com/apostrophecms/sanitize-html/pull/557Issue Tracking, Patch, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102Patch, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526Patch, Third Party Advisory
- https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23cPatch, Third Party Advisory
- https://github.com/apostrophecms/sanitize-html/pull/557Issue Tracking, Patch, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102Patch, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-25887?
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 a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 1.11% probability of exploitation in the next 30 days.
How do I fix CVE-2022-25887?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.
Are you affected by CVE-2022-25887?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
