{"id":"GHSA-cgfm-xwp7-2cvr","summary":"Sanitize-html Vulnerable To REDoS Attacks","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":["CVE-2022-25887"],"modified":"2024-04-22T23:56:49.765909Z","published":"2022-08-31T00:00:24Z","database_specific":{"nvd_published_at":"2022-08-30T05:15:00Z","cwe_ids":["CWE-1333"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2024-04-22T23:16:47Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25887"},{"type":"WEB","url":"https://github.com/apostrophecms/sanitize-html/pull/557"},{"type":"WEB","url":"https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526"}],"affected":[{"package":{"name":"sanitize-html","ecosystem":"npm","purl":"pkg:npm/sanitize-html"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.7.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-cgfm-xwp7-2cvr/GHSA-cgfm-xwp7-2cvr.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}