{"id":"CVE-2022-25887","details":"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.","aliases":["GHSA-cgfm-xwp7-2cvr"],"modified":"2026-04-02T07:54:13.865836Z","published":"2022-08-30T05:15:07.727Z","references":[{"type":"FIX","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102"},{"type":"FIX","url":"https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526"},{"type":"FIX","url":"https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c"},{"type":"FIX","url":"https://github.com/apostrophecms/sanitize-html/pull/557"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/apostrophecms/sanitize-html","events":[{"introduced":"0"},{"fixed":"b4682c12fd30e12e82fa2d9b766de91d7d2cd23c"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"2.7.1"}]}}],"versions":["1.10.1","1.11.0","1.11.1","1.11.4","1.18.2","1.18.3","1.18.4","1.18.5","1.19.0","1.19.1","1.19.2","1.19.3","1.20.0","1.21.0","1.21.1","1.22.0","1.27.4","2.0.0","2.1.0","2.1.1","2.1.2","2.2.0","2.3.0","2.3.1","2.3.2","2.3.3","2.4.0","2.5.0","2.5.1","2.5.2","2.5.3","2.6.0","2.6.1","2.7.0","v1.5.2","v1.7.0","v1.7.1","v1.7.2","v1.8.0","v1.9.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25887.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}