CVE-2022-36313
file-type vulnerable to Infinite Loop via malformed MKV file
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
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.
- Record
CVE-2022-36313- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-835
- Updated
- 2026-11-02
CVE List
5.5
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.
- Record
CVE-2022-36313- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-835
- Updated
- 2026-11-02
EUVDEUVD-2022-6377
5.5
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.
- Record
EUVD-2022-6377- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-mhxj-85r3-2x55
7.5
file-type vulnerable to Infinite Loop via malformed MKV file
An issue was discovered in the file-type package from 13.0.0 until 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 when used on a web server.
- Record
GHSA-mhxj-85r3-2x55- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-835
- Updated
- 2026-11-02
OSV
5.5
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.
- Record
CVE-2022-36313- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGHSA-mhxj-85r3-2x55
7.5
file-type vulnerable to Infinite Loop via malformed MKV file
An issue was discovered in the file-type package from 13.0.0 until 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 when used on a web server.
- Record
GHSA-mhxj-85r3-2x55- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-835
- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2022-36313 No score
CVE-2022-36313 in file-type - Patched by Root
Root has patched CVE-2022-36313 in the file-type package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2022-36313- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
file-typenpm |
17.0.0 up to 17.1.3 | 17.1.3 |
file-typenpm |
13.0.0 up to 16.5.4 | 16.5.4 |
file-typeRoot:npm |
before 16.5.4-aikido.2 | 16.5.4-aikido.216.5.4-aikido.1 |
@rootio/file-typeRoot:npm |
before 16.5.4-root.io.2 | 16.5.4-root.io.216.5.4-root.io.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-36313 is a medium vulnerability (CVSS 5.5) in Sindresorhus File-type, published July 21, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.41%, the 35th percentile. Fixed in file-type 17.1.3.
References
npmjs.com/package/file-type
github.com/sindresorhus/file-type/releases/tag/v17.1.3
github.com/sindresorhus/file-type/releases/tag/v16.5.4
security.netapp.com/advisory/ntap-20220909-0005
nvd.nist.gov/vuln/detail/CVE-2022-36313
github.com/sindresorhus/file-type/commit/2c4d1200c99dffb7d515b9b9951ef43c22bf7e47
Show 7 moreShow less
github.com/sindresorhus/file-type/commit/d86835680f4cccbee1a60628783c36700ec9e254
github.com/sindresorhus/file-type/commit/8f981c32e2750d2516457e305e502ee2ad715759
github.com/sindresorhus/file-type/compare/v12.4.2...v13.0.0
security.snyk.io/vuln/SNYK-JS-FILETYPE-2958042
github.com/advisories/GHSA-mhxj-85r3-2x55
github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36313.json
github.com/sindresorhus/file-type