{"id":"CVE-2022-36313","aliases":["EUVD-2022-6377","GHSA-mhxj-85r3-2x55","ROOT-APP-NPM-CVE-2022-36313"],"status":"published","title":"file-type vulnerable to Infinite Loop via malformed MKV file","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.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00406,"percentile":0.35194,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-835"],"published":"2022-07-21T15:31:27Z","modified":"2026-10-28T02:30:55Z","fixes":[{"ecosystem":"npm","package":"file-type","fixed_in":["17.1.3","16.5.4"],"sources":["ghsa","osv"]},{"ecosystem":"Root:npm","package":"file-type","fixed_in":["16.5.4-aikido.2","16.5.4-aikido.1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/file-type","fixed_in":["16.5.4-root.io.2","16.5.4-root.io.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"file-type","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"17.0.0"},{"fixed":"17.1.3"}]}]},{"source":"ghsa","ecosystem":"npm","package":"file-type","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"13.0.0"},{"fixed":"16.5.4"}]}]},{"source":"osv","ecosystem":"npm","package":"file-type","ranges":[{"type":"SEMVER","events":[{"introduced":"13.0.0"},{"fixed":"16.5.4"}]}]},{"source":"osv","ecosystem":"npm","package":"file-type","ranges":[{"type":"SEMVER","events":[{"introduced":"17.0.0"},{"fixed":"17.1.3"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"file-type","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.5.4-aikido.2"},{"fixed":"16.5.4-aikido.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/file-type","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.5.4-root.io.2"},{"fixed":"16.5.4-root.io.1"}]}]}],"products":[{"vendor":"sindresorhus","product":"file-type"}],"references":[{"url":"https://www.npmjs.com/package/file-type","tags":["x_refsource_MISC","x_transferred","Product","Third Party Advisory","web"]},{"url":"https://github.com/sindresorhus/file-type/releases/tag/v17.1.3","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","Third Party Advisory","web"]},{"url":"https://github.com/sindresorhus/file-type/releases/tag/v16.5.4","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","Third Party Advisory","web"]},{"url":"https://security.netapp.com/advisory/ntap-20220909-0005/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36313","tags":["advisory"]},{"url":"https://github.com/sindresorhus/file-type/commit/2c4d1200c99dffb7d515b9b9951ef43c22bf7e47","tags":["web"]},{"url":"https://github.com/sindresorhus/file-type/commit/d86835680f4cccbee1a60628783c36700ec9e254","tags":["web"]},{"url":"https://github.com/sindresorhus/file-type/commit/8f981c32e2750d2516457e305e502ee2ad715759#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12","tags":["web"]},{"url":"https://github.com/sindresorhus/file-type/compare/v12.4.2...v13.0.0#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12R611-R613","tags":["web"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-FILETYPE-2958042","tags":["web"]},{"url":"https://github.com/advisories/GHSA-mhxj-85r3-2x55"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36313.json","tags":["advisory"]},{"url":"https://github.com/sindresorhus/file-type","tags":["package"]},{"url":"https://security.netapp.com/advisory/ntap-20220909-0005","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2022-36313","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.","status":"published","published":"2022-07-21T15:31:27Z","modified":"2026-10-07T18:50:18.094Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"adp"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T14:34:35.615708Z"}],"euvd":[{"id":"EUVD-2022-6377","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.","status":"published","published":"2022-07-21T15:31:27Z","modified":"2026-10-07T18:50:18Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T17:27:34.353796Z"}],"ghsa":[{"id":"GHSA-mhxj-85r3-2x55","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.","status":"published","published":"2022-07-22T00:00:38Z","modified":"2023-01-28T05:02:52Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T14:36:23.433782Z"}],"nvd":[{"id":"CVE-2022-36313","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.","status":"published","published":"2022-07-21T16:15:09.297Z","modified":"2026-10-07T19:17:30.503Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"secondary"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T14:07:24.037422Z"}],"osv":[{"id":"CVE-2022-36313","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.","status":"published","published":"2022-07-21T15:31:27Z","modified":"2026-10-28T02:30:55.250932148Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:26.195407Z"},{"id":"GHSA-mhxj-85r3-2x55","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.","status":"published","published":"2022-07-22T00:00:38Z","modified":"2023-11-08T04:10:02.456879Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T15:46:51.811331Z"},{"id":"ROOT-APP-NPM-CVE-2022-36313","title":"CVE-2022-36313 in file-type - Patched by Root","description":"Root has patched CVE-2022-36313 in the file-type package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-09-29T12:27:01Z","modified":"2026-09-29T13:15:03.564670758Z","updated_at":"2026-11-02T15:53:27.362922Z"}]}}
