{"id":"CVE-2022-36313","aliases":["CVE-2022-36313","GHSA-mhxj-85r3-2x55"],"related":[],"kind":"vulnerability","state":"published","title":"file-type vulnerable to Infinite Loop via malformed MKV file","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se ha detectado un problema en el paquete file-type versiones anteriores a 16.5.4 y 17.x anteriores a 17.1.3 para Node.js. Un archivo MKV malformado podía causar que el detector de tipo de archivo quedara atrapado en un bucle infinito. Esto haría que la aplicación dejara de responder y podría usarse para causar un ataque DoS","source":"nvd"}],"published":"2022-07-21T15:31:27.000Z","modified":"2026-10-07T19:17:30.503Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-835"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"13.0.0","status":"affected","fixed":"16.5.4"}],"ecosystem":"npm","package":"file-type","purl":"pkg:npm/file-type","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"17.0.0","status":"affected","fixed":"17.1.3"}],"ecosystem":"npm","package":"file-type","purl":"pkg:npm/file-type","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"16.5.4"},{"status":"affected","introduced":"17.0.0","fixed":"17.1.3"}],"vendor":"sindresorhus","product":"file-type","cpe":"cpe:2.3:a:sindresorhus:file-type:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://www.npmjs.com/package/file-type","tags":["product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sindresorhus/file-type/releases/tag/v17.1.3","tags":["release-notes","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sindresorhus/file-type/releases/tag/v16.5.4","tags":["release-notes","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20220909-0005/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36313","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sindresorhus/file-type/commit/2c4d1200c99dffb7d515b9b9951ef43c22bf7e47","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sindresorhus/file-type/commit/8f981c32e2750d2516457e305e502ee2ad715759#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sindresorhus/file-type/commit/d86835680f4cccbee1a60628783c36700ec9e254","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sindresorhus/file-type","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/sindresorhus/file-type/compare/v12.4.2...v13.0.0#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12R611-R613","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20220909-0005","tags":["web"],"sources":["ghsa"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-FILETYPE-2958042","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-07T18:49:40.209Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-36313","url":"https://www.cve.org/CVERecord?id=CVE-2022-36313","licence":"CVE Terms of Use","modified":"2026-10-07T18:50:18.094Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mhxj-85r3-2x55","url":"https://github.com/advisories/GHSA-mhxj-85r3-2x55","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:02.456Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-36313","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36313","licence":"Public domain","modified":"2026-10-07T19:17:30.503Z"}],"updatedAt":"2026-11-25T22:58:13.140Z","epss":{"score":0.0041,"percentile":0.37321,"date":"2026-12-01T12:00:22.000Z"}}