{"id":"CVE-2022-25887","aliases":["GHSA-cgfm-xwp7-2cvr"],"url":"https://o3.security/vulnerability/CVE-2022-25887","summary":"Regular Expression Denial of Service (ReDoS)","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.","published":"2022-08-30T05:00:20.149Z","modified":"2026-08-12T03:51:33.085817246Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},"epss":{"score":0.01454,"percentile":0.72165,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"sanitize-html","fixedVersion":"2.7.1"}],"fix":{"url":"https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c","label":"apostrophecms/sanitize-html@b4682c1"},"references":[{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25887.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25887"},{"type":"FIX","url":"https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c"},{"type":"FIX","url":"https://github.com/apostrophecms/sanitize-html/pull/557"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:33.085817246Z"}}