CVE-2022-36313
MEDIUM 5.5CVSS 3.1file-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.
- Published
- 21 Jul 2022
- Last modified
- 7 Oct 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-835
- Also known as
- GHSA-mhxj-85r3-2x55
- Sources
- NVDJSONOSV GHSA-mhxj-85r3-2x55JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sindresorhus | file-typecpe:2.3:a:sindresorhus:file-type:*:*:*:*:*:node.js:*:* |
< 16.5.4 | 16.5.4 |
| NVD | sindresorhus | file-typecpe:2.3:a:sindresorhus:file-type:*:*:*:*:*:node.js:*:* |
>= 17.0.0, < 17.1.3 | 17.1.3 |
| OSV | npm | file-type | >= 13.0.0, < 16.5.4 | 16.5.4 |
| OSV | npm | file-type | >= 17.0.0, < 17.1.3 | 17.1.3 |
References
- https://github.com/sindresorhus/file-type/releases/tag/v16.5.4 · Release Notes, Third Party Advisory, WEB
- https://github.com/sindresorhus/file-type/releases/tag/v17.1.3 · Release Notes, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20220909-0005/ · Third Party Advisory, WEB
- https://www.npmjs.com/package/file-type · Product, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-36313 · ADVISORY
- https://github.com/sindresorhus/file-type/commit/2c4d1200c99dffb7d515b9b9951ef43c22bf7e47 · WEB
- https://github.com/sindresorhus/file-type/commit/8f981c32e2750d2516457e305e502ee2ad715759#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12 · WEB
- https://github.com/sindresorhus/file-type/commit/d86835680f4cccbee1a60628783c36700ec9e254 · WEB
- https://github.com/sindresorhus/file-type · PACKAGE
- https://github.com/sindresorhus/file-type/compare/v12.4.2...v13.0.0#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12R611-R613 · WEB
- https://security.snyk.io/vuln/SNYK-JS-FILETYPE-2958042 · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 21 Jul 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Jul 2022)