# CVE-2022-36313: file-type vulnerable to Infinite Loop via malformed MKV file

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2022-07-21T15:31:27.000Z
- Modified: 2026-10-07T19:17:30.503Z
- Also known as: GHSA-mhxj-85r3-2x55
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- file-type (npm): from 13.0.0 before 16.5.4; from 17.0.0 before 17.1.3
- sindresorhus file-type: before 16.5.4; from 17.0.0 before 17.1.3

## Every score

- CISA-ADP: 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`
- GitHub: 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`
- NVD: 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`

## References

- <https://www.npmjs.com/package/file-type> (product, third-party-advisory, web)
- <https://github.com/sindresorhus/file-type/releases/tag/v17.1.3> (release-notes, third-party-advisory, web)
- <https://github.com/sindresorhus/file-type/releases/tag/v16.5.4> (release-notes, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20220909-0005/> (third-party-advisory)
- <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.netapp.com/advisory/ntap-20220909-0005> (web)
- <https://security.snyk.io/vuln/SNYK-JS-FILETYPE-2958042> (web)

## Sources

- CVE List: [CVE-2022-36313](https://www.cve.org/CVERecord?id=CVE-2022-36313), CVE Terms of Use, modified 2026-10-07
- GitHub Advisory Database: [GHSA-mhxj-85r3-2x55](https://github.com/advisories/GHSA-mhxj-85r3-2x55), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-36313](https://nvd.nist.gov/vuln/detail/CVE-2022-36313), Public domain, modified 2026-10-07

---

Page: https://cve.day/CVE-2022-36313 · Whole record: https://cve.day/CVE-2022-36313.json · Rebuilt by cve.day 2026-11-25T22:58:13.140Z
