Vulnerability in Apostrophecms Sanitize-Html
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.016, 75.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Apostrophecms Sanitize-Html
- Sanitize-Html — versions unspecified
Weakness classification (CWE)
References
- security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526 (Patch, Third Party Advisory)
- security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102 (Patch, Third Party Advisory)
- github.com/apostrophecms/sanitize-html/pull/557 (Patch, Third Party Advisory, Issue Tracking)
- github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7… (Patch, Third Party Advisory)