{"id":"UBUNTU-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.","modified":"2026-02-04T04:30:15.958449Z","published":"2022-08-30T05:15:00Z","related":["USN-7464-1"],"upstream":["CVE-2022-25887"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-25887"},{"type":"REPORT","url":"https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526"},{"type":"REPORT","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102"},{"type":"REPORT","url":"https://github.com/apostrophecms/sanitize-html/pull/557"},{"type":"REPORT","url":"https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-25887"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7464-1"}],"affected":[{"package":{"name":"node-sanitize-html","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-sanitize-html@2.6.1-1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.6.1-1","binary_name":"node-sanitize-html"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25887.json"}},{"package":{"name":"jupyter-notebook","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/jupyter-notebook@6.4.8-1ubuntu0.1+esm1?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.4.8-1ubuntu0.1+esm1"}]}],"versions":["6.2.0-1","6.4.5-2","6.4.5-3","6.4.5-4","6.4.8-1","6.4.8-1ubuntu0.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"6.4.8-1ubuntu0.1+esm1","binary_name":"jupyter-notebook"},{"binary_version":"6.4.8-1ubuntu0.1+esm1","binary_name":"python3-notebook"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25887.json"}},{"package":{"name":"node-sanitize-html","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-sanitize-html@2.8.0+~2.6.2-1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.0+~2.6.2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.8.0+~2.6.2-1","binary_name":"node-sanitize-html"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25887.json"}},{"package":{"name":"jupyter-notebook","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/jupyter-notebook@6.4.12-2.2ubuntu1+esm1?arch=source&distro=esm-apps/noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.4.12-2.2ubuntu1+esm1"}]}],"versions":["6.4.12-2.2","6.4.12-2.2ubuntu1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"6.4.12-2.2ubuntu1+esm1","binary_name":"jupyter-notebook"},{"binary_version":"6.4.12-2.2ubuntu1+esm1","binary_name":"python3-notebook"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25887.json"}},{"package":{"name":"jupyter-notebook","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/jupyter-notebook@6.4.13-5ubuntu0.1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.4.13-5","6.4.13-5ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"6.4.13-5ubuntu0.1","binary_name":"jupyter-notebook"},{"binary_version":"6.4.13-5ubuntu0.1","binary_name":"python3-notebook"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25887.json"}},{"package":{"name":"node-sanitize-html","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-sanitize-html@2.14.0+~2.13.0-1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.0+~2.13.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.14.0+~2.13.0-1","binary_name":"node-sanitize-html"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-25887.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}