CVE-2022-36313: sindresorhus file-type Infinite Loop
CVSS: 5.5v3.1MediumModified
AliasesGHSA-mhxj-85r3-2x55
Published 21-07-2022Last modified 07-10-2026
Vulnerability summary
CVE-2022-36313 is a medium (CVSS 5.5) Infinite Loop vulnerability in sindresorhus file-type. EPSS estimates a 0.41% chance of exploitation in the next 30 days, higher than 33.7% of scored vulnerabilities.
CVSS score
5.5/10
010
Medium · v3.1 (CVE.org)EPSS score
0.41%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Timeline
- 21-07-2022PublishedVulnerability first disclosed.
- 07-10-2026Last modifiedVulnerability information updated.
Description
An issue was discovered in the file-type package before 16.5.4 and 17.x before 17.1.3 for Node.js. A malformed MKV file could cause the file type detector to get caught in an infinite loop. This would make the application become unresponsive and could be used to cause a DoS attack.
CVSS metrics
3 scores · 3 sources · 1 versionMedium 5.5Preferred score · CVE.org (CNA)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HSources3 sources · 5.5–7.5
- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.41%
Chance of exploitation in the next 30 days
Percentile
34%
Versus all other CVEs
30-day change
0.00 pp
From 0.41% on 21-09-2026
21-09-202621-10-2026
EPSS score0.41%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Npm1 product
- file-type≥ 13.0.0, < 16.5.4 | ≥ 17.0.0, < 17.1.3
Sindresorhus1 product
- file-type< 16.5.4 | ≥ 17.0.0, < 17.1.3
2 vendors · 2 products
References
12 links- github.com/sindresorhus/file-type/releases/tag/v17.1.3X Refsource CONFIRMWEBRelease NotesThird Party Advisory
- github.com/sindresorhus/file-type/releases/tag/v16.5.4X Refsource CONFIRMWEBRelease NotesThird Party Advisory