{"answers":{"affected":"4 open source packages ship an affected version, including file-type. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-36313 in the wild and no public exploit code.","fix":"Upgrade file-type to a fixed version for your release line: 16.5.4 or 17.1.3.","what":"CVE-2022-36313 is a medium-severity denial of service vulnerability in n/a, published on 21 Jul 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-36313 and fix it if it is affected.\n\nWhat it is: CVE-2022-36313 is a medium-severity denial of service vulnerability in n/a, published on 21 Jul 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-36313 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- file-type (npm): affected from 13.0.0; fixed in 16.5.4\n- file-type (npm): affected from 13.0.0; fixed in 16.5.4\n- file-type (npm): affected from 17.0.0; fixed in 17.1.3\n- file-type (npm): affected from 17.0.0; fixed in 17.1.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-36313/ (Markdown: https://insights.sbomify.com/CVE-2022-36313/index.md)","id":"CVE-2022-36313","markdown":"https://insights.sbomify.com/CVE-2022-36313/index.md","name":"CVE-2022-36313","record":{"aliases":["GHSA-mhxj-85r3-2x55","ROOT-APP-NPM-CVE-2022-36313"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Node.js file-type library","requires_auth":"none","summary":"A malformed MKV file triggers an infinite loop in the file-type library, causing application unresponsiveness and denial of service.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"file-type","vendor":"sindresorhus"}],"cvss":{"score":5.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"file-type vulnerable to Infinite Loop via malformed MKV file","id":"CVE-2022-36313","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":4,"n_references":4,"next":{"headline":"Server-side request forgery in Firefox","id":"CVE-2022-36314"},"packages":[{"ecosystem":"npm","fixed":["16.5.4"],"introduced":["13.0.0"],"last_affected":[],"package":"file-type","purl":null,"source":"GHSA-mhxj-85r3-2x55"},{"ecosystem":"npm","fixed":["16.5.4"],"introduced":["13.0.0"],"last_affected":[],"package":"file-type","purl":"pkg:npm/file-type","source":"GHSA-mhxj-85r3-2x55"},{"ecosystem":"npm","fixed":["17.1.3"],"introduced":["17.0.0"],"last_affected":[],"package":"file-type","purl":null,"source":"GHSA-mhxj-85r3-2x55"},{"ecosystem":"npm","fixed":["17.1.3"],"introduced":["17.0.0"],"last_affected":[],"package":"file-type","purl":"pkg:npm/file-type","source":"GHSA-mhxj-85r3-2x55"}],"prev":{"headline":"Cross-site request forgery in AirVelocity","id":"CVE-2022-36312"},"products":["n/a"],"published":"2022-07-21","related":[{"cvss_score":5.3,"headline":"file-type affected by ZIP Decompression Bomb DoS via [Content_Types].xml entry","id":"CVE-2026-32630","kev_date_added":null,"published":"2026-03-13"},{"cvss_score":5.3,"headline":"file-type affected by infinite loop in ASF parser on malformed input with zero-size sub-header","id":"CVE-2026-31808","kev_date_added":null,"published":"2026-03-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-07","vendors":["n/a"]},"summary":"A malformed MKV file triggers an infinite loop in the file-type library, causing application unresponsiveness and denial of service.","url":"https://insights.sbomify.com/CVE-2022-36313/"}