{"id":"GHSA-mhxj-85r3-2x55","revision":"8bc4d8e88448424496c316eb0fa7d0fd","records":[{"revision":"8bc4d8e88448424496c316eb0fa7d0fd","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-mhxj-85r3-2x55","aliases":["CVE-2022-36313"],"title":"file-type vulnerable to Infinite Loop via malformed MKV file","description":"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.","state":0,"publishedAt":"2022-07-22T00:00:38+00:00","modifiedAt":"2023-11-08T04:10:02.456879+00:00","affected":[{"ecosystem":"npm","name":"file-type","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"13.0.0"},{"kind":"fixed","version":"16.5.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"file-type","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"17.0.0"},{"kind":"fixed","version":"17.1.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-36313","https://github.com/sindresorhus/file-type/commit/2c4d1200c99dffb7d515b9b9951ef43c22bf7e47","https://github.com/sindresorhus/file-type/commit/8f981c32e2750d2516457e305e502ee2ad715759#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12","https://github.com/sindresorhus/file-type/commit/d86835680f4cccbee1a60628783c36700ec9e254","https://github.com/sindresorhus/file-type","https://github.com/sindresorhus/file-type/compare/v12.4.2...v13.0.0#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12R611-R613","https://github.com/sindresorhus/file-type/releases/tag/v16.5.4","https://github.com/sindresorhus/file-type/releases/tag/v17.1.3","https://security.netapp.com/advisory/ntap-20220909-0005","https://security.snyk.io/vuln/SNYK-JS-FILETYPE-2958042","https://www.npmjs.com/package/file-type"],"sourceUrl":"https://github.com/advisories/GHSA-mhxj-85r3-2x55","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-mhxj-85r3-2x55","identifiers":["GHSA-mhxj-85r3-2x55","CVE-2022-36313"]},"retained":false,"historicalAffected":[]}],"coverage":[]}