CVE-2022-25887 Regular Expression Denial of Service (ReDoS)
HighCVSS 7.5
EPSS 1.6%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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.
Upgrade path
16 packages: 9 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/jupyter-notebook(Ubuntu 25.10) | = 6.4.13-5; = 6.4.13-5ubuntu0.1; All versions | No fix listed | No fix yet |
| ubuntu/jupyter-notebook(Ubuntu 26.10) | = 6.4.13-5ubuntu0.1; All versions | No fix listed | No fix yet |
| ubuntu/node-sanitize-html(Ubuntu 22.04) | = 2.6.1-1; All versions | No fix listed | No fix yet |
| ubuntu/node-sanitize-html(Ubuntu 24.04) | = 2.8.0+~2.6.2-1; All versions | No fix listed | No fix yet |
| ubuntu/node-sanitize-html(Ubuntu 25.10) | = 2.14.0+~2.13.0-1; All versions | No fix listed | No fix yet |
| ubuntu/node-sanitize-html(Ubuntu 26.04) | = 2.14.0+~2.13.0-1; All versions | No fix listed | No fix yet |
| ubuntu/node-sanitize-html(Ubuntu 26.10) | = 2.14.0+~2.13.0-1; = 2.17.0+~2.16.1-1; All versions | No fix listed | No fix yet |
| apostrophecms sanitize-html | < 2.7.1 | 2.7.1 | Fixed |
| debian/node-sanitize-html(Debian 12) | < 2.7.1+~2.6.2-1 | 2.7.1+~2.6.2-1 | Fixed |
| debian/node-sanitize-html(Debian 13) | < 2.7.1+~2.6.2-1 | 2.7.1+~2.6.2-1 | Fixed |
| debian/node-sanitize-html(Debian 14) | < 2.7.1+~2.6.2-1 | 2.7.1+~2.6.2-1 | Fixed |
| npm sanitize-html(npm) | < 2.7.1 | 2.7.1 | Fixed |
| ubuntu/jupyter-notebook(Ubuntu 22.04) | < 6.4.8-1ubuntu0.1+esm1 | 6.4.8-1ubuntu0.1+esm1 | Fixed |
| ubuntu/jupyter-notebook(Ubuntu 24.04) | < 6.4.12-2.2ubuntu1+esm1 | 6.4.12-2.2ubuntu1+esm1 | Fixed |
| ubuntu/jupyter-notebook(Ubuntu Pro 22.04) | < 6.4.8-1ubuntu0.1+esm1; = 6.2.0-1; = 6.4.5-2; = 6.4.5-3 +3 more | 6.4.8-1ubuntu0.1+esm1 | Fixed |
| ubuntu/jupyter-notebook(Ubuntu Pro 24.04) | < 6.4.12-2.2ubuntu1+esm1; = 6.4.12-2.2; = 6.4.12-2.2ubuntu1 | 6.4.12-2.2ubuntu1+esm1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm sanitize-html(npm) | < 2.7.1 | 2.7.1 |
| ubuntu/node-sanitize-html(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:22.04) | < 6.4.8-1ubuntu0.1+esm1 | 6.4.8-1ubuntu0.1+esm1 |
| apostrophecms sanitize-html | < 2.7.1 | 2.7.1 |
| ubuntu/node-sanitize-html(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:24.04) | < 6.4.12-2.2ubuntu1+esm1 | 6.4.12-2.2ubuntu1+esm1 |
| ubuntu/node-sanitize-html(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:26.10) | All versions | No fix listed |
| debian/node-sanitize-html(Debian:12) | < 2.7.1+~2.6.2-1 | 2.7.1+~2.6.2-1 |
| debian/node-sanitize-html(Debian:14) | < 2.7.1+~2.6.2-1 | 2.7.1+~2.6.2-1 |
| debian/node-sanitize-html(Debian:13) | < 2.7.1+~2.6.2-1 | 2.7.1+~2.6.2-1 |
| ubuntu/node-sanitize-html(Ubuntu:22.04) | = 2.6.1-1 | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:Pro:22.04) | < 6.4.8-1ubuntu0.1+esm1 | 6.4.8-1ubuntu0.1+esm1 |
| ubuntu/jupyter-notebook(Ubuntu:Pro:22.04) | = 6.2.0-1 | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:Pro:22.04) | = 6.4.5-2 | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:Pro:22.04) | = 6.4.5-3 | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:Pro:22.04) | = 6.4.5-4 | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:Pro:22.04) | = 6.4.8-1 | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:Pro:22.04) | = 6.4.8-1ubuntu0.1 | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:24.04) | = 2.8.0+~2.6.2-1 | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:Pro:24.04) | < 6.4.12-2.2ubuntu1+esm1 | 6.4.12-2.2ubuntu1+esm1 |
| ubuntu/jupyter-notebook(Ubuntu:Pro:24.04) | = 6.4.12-2.2 | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:Pro:24.04) | = 6.4.12-2.2ubuntu1 | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:25.10) | All versions | No fix listed |
Show 8 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/jupyter-notebook(Ubuntu:25.10) | = 6.4.13-5 | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:25.10) | = 6.4.13-5ubuntu0.1 | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:25.10) | = 2.14.0+~2.13.0-1 | No fix listed |
| ubuntu/jupyter-notebook(Ubuntu:26.10) | = 6.4.13-5ubuntu0.1 | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:26.10) | = 2.14.0+~2.13.0-1 | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:26.10) | = 2.17.0+~2.16.1-1 | No fix listed |
| ubuntu/node-sanitize-html(Ubuntu:26.04) | = 2.14.0+~2.13.0-1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking patch third-party-advisory
- security.snyk.io issue-tracking patch third-party-advisory
- security.snyk.io issue-tracking patch third-party-advisory
- github.com
- Debian Security Tracker CVE-2022-25887 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-7464-1 vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking