CVE-2022-25887: apostrophecms sanitize-html
CVSS: 7.5v3.1HighModified
AliasesUBUNTU-CVE-2022-25887USN-7464-1DEBIAN-CVE-2022-25887GHSA-cgfm-xwp7-2cvr
Published 30-08-2022Last modified 17-09-2024
Vulnerability summary
CVE-2022-25887 is a high (CVSS 7.5) vulnerability in apostrophecms sanitize-html. EPSS estimates a 1.45% chance of exploitation in the next 30 days, higher than 73.2% of scored vulnerabilities.
CVSS score
7.5/10
010
High · v3.1 (NVD)EPSS score
1.45%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Timeline
- 30-08-2022PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 versionHigh 7.5Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HSources5 sources · 5.3–7.5
- CVE.orgCNA5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.45%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
0.00 pp
From 1.45% on 21-09-2026
21-09-202621-10-2026
EPSS score1.45%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Ubuntu2 products
- jupyter-notebook< 6.4.8-1ubuntu0.1+esm1 | < 6.4.12-2.2ubuntu1+esm1 | All versions (No fix recorded)
- node-sanitize-htmlAll versions (No fix recorded)
Apostrophecms1 product
- sanitize-html< 2.7.1
Debian1 product
- node-sanitize-html< 2.7.1+~2.6.2-1
Npm1 product
- sanitize-html< 2.7.1
4 vendors · 5 products
References
9 links- security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526X Refsource MISCREPORTWEBPatchThird Party Advisory
- security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102X Refsource MISCREPORTWEBPatchThird Party Advisory
- github.com/apostrophecms/sanitize-html/pull/557X Refsource MISCREPORTWEBIssue TrackingPatchThird Party Advisory
- github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23cX Refsource MISCREPORTWEBPatchThird Party Advisory