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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | sanitize-html | unspecified – < 2.7.1 | 2.7.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-sanitize-html | 2.7.1+~2.6.2-1 | — |
| Debian 13 | node-sanitize-html | 2.7.1+~2.6.2-1 | — |
| Debian 12 | node-sanitize-html | 2.7.1+~2.6.2-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | jupyter-notebook +1 | No fix yet | — |
| Ubuntu 26.04 LTS | node-sanitize-html | No fix yet | — |
| Ubuntu 25.10 | jupyter-notebook +1 | No fix yet | — |
| Ubuntu 24.04 LTS | node-sanitize-html | No fix yet | — |
| Ubuntu 22.04 LTS | node-sanitize-html | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | jupyter-notebook | 6.4.12-2.2ubuntu1+esm1 | USN-7464-1 |
| Ubuntu Pro 22.04 LTS | jupyter-notebook | 6.4.8-1ubuntu0.1+esm1 | USN-7464-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | sanitize-html | < 2.7.1 | 2.7.1 | GHSA-cgfm-xwp7-2cvr |
Advisories 3
- USN-7464-1 jupyter-notebook vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- WID-SEC-2023-0272 IBM Business Automation Workflow: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Feb 2, 2023
- WID-SEC-2022-2368 HCL BigFix: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 9, 2023