CVE-2022-25887
published medium CVSS 3.1 · 5.3Regular Expression Denial of Service (ReDoS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | sanitize-htmlunspecified to < 2.7.1 | Affected | Not stated | snyk |
| Ubuntu | jammy | jupyter-notebook | Advisory build | 6.4.8-1ubuntu0.1+esm1 | USN-7464-1 |
| Ubuntu | jammy | python3-notebook | Advisory build | 6.4.8-1ubuntu0.1+esm1 | USN-7464-1 |
| Ubuntu | noble | jupyter-notebook | Advisory build | 6.4.12-2.2ubuntu1+esm1 | USN-7464-1 |
| Ubuntu | noble | python3-notebook | Advisory build | 6.4.12-2.2ubuntu1+esm1 | USN-7464-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | sanitize-html | unspecified to < 2.7.1 (affected · custom) | snyk · cna |
Weaknesses
1- Regular Expression Denial of Service (ReDoS)
References
4Provider assertions
2snyk · cna
Regular Expression Denial of Service (ReDoS)
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0ad9252f9399976cea3393147a6af6a6d746778f9fc8419377144fba12688337
- Ingested
- 23 Sep 2026, 07:59:13 UTC
- Source record
- Official CVE record