CVE-2022-36313Sindresorhus File-type
Medium 5.5
Follow: this CVE · Sindresorhus · Sindresorhus File-type We alert you by email or Slack (account required).
- Priority
- 33
- CVSS 3.1
- 5.5
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 26
- Auth required
- Yes
- Published
- Jul 21, 2022
- Updated
- Oct 7, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-835
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for File-type.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | file-type |
≥ 13.0.0 < 16.5.4 |
16.5.4 |
npm install file-type@16.5.4 |
| npm | file-type |
≥ 17.0.0 < 17.1.3 |
17.1.3 |
npm install file-type@17.1.3 |
Per OSV / GitHub Advisories (GHSA-mhxj-85r3-2x55). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| sindresorhus | file-type | < 16.5.4 |
| sindresorhus | file-type | ≥ 17.0.0 < 17.1.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- github.com Release Notes Third Party Advisory
- security.netapp.com Third Party Advisory
- www.npmjs.com Product Third Party Advisory