CVE-2022-25887
MEDIUMsanitize-html < 2.7.1 - Regular Expression Denial of Service via HTML Comment Removal
Title source: llmDescription
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.
References (4)
Core 4
Core References
Patch, Third Party Advisory x_refsource_misc
https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526
Patch, Third Party Advisory x_refsource_misc
https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/apostrophecms/sanitize-html/pull/557
Patch, Third Party Advisory x_refsource_misc
https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c
Scores
CVSS v3
5.3
EPSS
0.0111
EPSS Percentile
61.5%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Details
CWE
CWE-1333
Status
published
Products (2)
apostrophecms/sanitize-html
< 2.7.1
npm/sanitize-html
0 - 2.7.1npm
Published
Aug 30, 2022
Tracked Since
Feb 18, 2026