{"schemaVersion":3,"id":"CVE-2022-36313","aliases":["GHSA-mhxj-85r3-2x55"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-07-21T15:31:27.000Z","modified":"2026-10-07T18:50:18.094Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00406,"percentile":0.33743,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00406},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00406,"percentile":0.33743}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00406,"percentile":0.33743}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition ('Infinite Loop')","description":"The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/835.html"}],"affected":[{"vendor":"Npm","product":"file-type","name":"file-type","label":"file-type","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/file-type","purlType":"npm","versions":[{"text":"≥ 13.0.0, < 16.5.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 17.0.0, < 17.1.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 13.0.0, < 16.5.4 | ≥ 17.0.0, < 17.1.3","eol":null,"hubHref":null},{"vendor":"sindresorhus","product":"file-type","name":"file-type","label":"file-type","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 16.5.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 17.0.0, < 17.1.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 16.5.4 | ≥ 17.0.0, < 17.1.3","eol":null,"hubHref":"/vendor/sindresorhus/file-type"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.npmjs.com/package/file-type","label":"www.npmjs.com/package/file-type","hostname":"www.npmjs.com","tags":["X Refsource MISC","WEB","Product","Third Party Advisory"]},{"url":"https://github.com/sindresorhus/file-type/releases/tag/v17.1.3","label":"github.com/sindresorhus/file-type/releases/tag/v17.1.3","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Release Notes","Third Party Advisory"]},{"url":"https://github.com/sindresorhus/file-type/releases/tag/v16.5.4","label":"github.com/sindresorhus/file-type/releases/tag/v16.5.4","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Release Notes","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20220909-0005/","label":"security.netapp.com/advisory/ntap-20220909-0005/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36313","label":"nvd.nist.gov/vuln/detail/CVE-2022-36313","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/sindresorhus/file-type/commit/2c4d1200c99dffb7d515b9b9951ef43c22bf7e47","label":"github.com/sindresorhus/file-type/commit/2c4d1200c99dffb7d515b9b9951ef43c22bf7e47","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/sindresorhus/file-type/commit/8f981c32e2750d2516457e305e502ee2ad715759#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12","label":"github.com/sindresorhus/file-type/commit/8f981c32e2750d2516457e305e502ee2ad715759","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/sindresorhus/file-type/commit/d86835680f4cccbee1a60628783c36700ec9e254","label":"github.com/sindresorhus/file-type/commit/d86835680f4cccbee1a60628783c36700ec9e254","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/sindresorhus/file-type","label":"github.com/sindresorhus/file-type","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/sindresorhus/file-type/compare/v12.4.2...v13.0.0#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12R611-R613","label":"github.com/sindresorhus/file-type/compare/v12.4.2...v13.0.0","hostname":"github.com","tags":["WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20220909-0005","label":"security.netapp.com/advisory/ntap-20220909-0005","hostname":"security.netapp.com","tags":["WEB"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-FILETYPE-2958042","label":"security.snyk.io/vuln/SNYK-JS-FILETYPE-2958042","hostname":"security.snyk.io","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-07-21T15:31:27.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-07T18:50:18.094Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T05:42:44.810Z","stale":false,"partial":false}}