VulnerabilityModified
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.
HIGH 7.5EPSS 1.44%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.44%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 1.44% probability · 72th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-1333
- Affected
- apostrophecms/sanitize-html
- Source
- report@snyk.io
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
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.