{"id":"CVE-2022-36313","published":"2022-07-21T15:31:27Z","modified":"2026-10-07T18:50:18Z","title":"An issue was discovered in the file-type package before 16.5.4 and 17.x before 17.1.3 for Node.js","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00406,"percentile":0.35791,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://www.npmjs.com/package/file-type","tags":["x_refsource_MISC"]},{"url":"https://github.com/sindresorhus/file-type/releases/tag/v17.1.3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sindresorhus/file-type/releases/tag/v16.5.4","tags":["x_refsource_CONFIRM"]},{"url":"https://security.netapp.com/advisory/ntap-20220909-0005/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":7.16},{"name":"CVSS severity","points":3.85}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-07T18:49:40.209210Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"file-type","vulnerableRanges":[">=13.0.0, <16.5.4",">=17.0.0, <17.1.3"],"patched":["16.5.4","17.1.3"],"from":["GHSA-mhxj-85r3-2x55"],"provenance":"source"}],"summary":{"text":"The file-type package for Node.js, in versions before 16.5.4 and 17.x before 17.1.3, can enter an infinite loop when its file type detector processes a malformed MKV file. An attacker can make an application that uses this library hang and become unresponsive by supplying such a file, which requires the victim to process it (user interaction) and needs no privileges or network position beyond delivering the file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:14Z"},"euvd":{"id":"EUVD-2022-6377","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sindresorhus-file-type-cve-2022-36313","children":[{"from":"CVE-2022-36313","to":"CVE-2026-31808","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["core.js","test.js"],"commits":["https://github.com/sindresorhus/file-type/commit/2c4d1200c99dffb7d515b9b9951ef43c22bf7e47","https://github.com/sindresorhus/file-type/commit/8f981c32e2750d2516457e305e502ee2ad715759","https://github.com/sindresorhus/file-type/commit/319abf871b50ba2fa221b4a7050059f1ae096f4f"],"basis":"shared function","functions":["FileTypeParser","test"]}]},{"from":"CVE-2022-36313","to":"CVE-2026-32630","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["core.js","test.js"],"commits":["https://github.com/sindresorhus/file-type/commit/2c4d1200c99dffb7d515b9b9951ef43c22bf7e47","https://github.com/sindresorhus/file-type/commit/8f981c32e2750d2516457e305e502ee2ad715759","https://github.com/sindresorhus/file-type/commit/399b0f156063f5aeb1c124a7fd61028f3ea7c124","https://github.com/sindresorhus/file-type/commit/a155cd71323279de173c54e8c530d300d3854fdd"],"basis":"shared function","functions":["FileTypeParser","test"]}]}]}}