Ubuntu CVE Tracker
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:22.04:LTS | node-sanitize-html | All versions, no fix listed |
| Ubuntu:Pro:22.04:LTS | jupyter-notebook | All versions before 6.4.8-1ubuntu0.1+esm1 (fixed in 6.4.8-1ubuntu0.1+esm1) |
| Ubuntu:24.04:LTS | node-sanitize-html | All versions, no fix listed |
| Ubuntu:Pro:24.04:LTS | jupyter-notebook | All versions before 6.4.12-2.2ubuntu1+esm1 (fixed in 6.4.12-2.2ubuntu1+esm1) |
| Ubuntu:25.10 | jupyter-notebook | All versions, no fix listed |
| Ubuntu:25.10 | node-sanitize-html | All versions, no fix listed |
| Ubuntu:26.10 | jupyter-notebook | All versions, no fix listed |
| Ubuntu:26.10 | node-sanitize-html | All versions, no fix listed |
| Ubuntu:26.04:LTS | node-sanitize-html | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2022-25887
- https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102
- https://github.com/apostrophecms/sanitize-html/pull/557
- https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c
- https://www.cve.org/CVERecord?id=CVE-2022-25887
- https://ubuntu.com/security/notices/USN-7464-1