{"id":"CVE-2026-32630","published":"2026-03-13T20:54:16Z","modified":"2026-03-16T16:59:36Z","title":"file-type affected by ZIP Decompression Bomb DoS via [Content_Types].xml entry","vendor":"sindresorhus","product":"file-type","tier":"tail","description":{"text":"file-type detects the file type of a file, stream, or data. From 20.0.0 to 21.3.1, a crafted ZIP file can trigger excessive memory growth during type detection in file-type when using fileTypeFromBuffer(), fileTypeFromBlob(), or fileTypeFromFile(). The ZIP inflate output limit is enforced for stream-based detection, but not for known-size inputs. As a result, a small compressed ZIP can cause file-type to inflate and process a much larger payload while probing ZIP-based formats such as OOXML. This vulnerability is fixed in 21.3.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0035,"percentile":0.29431,"provenance":"source"},"cwes":[{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"}],"references":[{"url":"https://github.com/sindresorhus/file-type/security/advisories/GHSA-j47w-4g3g-c36v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sindresorhus/file-type/commit/399b0f156063f5aeb1c124a7fd61028f3ea7c124","tags":["x_refsource_MISC"]}],"priority":{"score":9.6,"factors":[{"name":"EPSS percentile","points":5.89},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"sindresorhus","affectedVersions":[{"vendor":"sindresorhus","product":"file-type","versions":[">= 20.0.0, < 21.3.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-16T16:59:32.922021Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"file-type","vulnerableRanges":[">=20.0.0, <21.3.2"],"patched":["21.3.2"],"from":["GHSA-j47w-4g3g-c36v"],"provenance":"source"}],"summary":{"text":"The file-type npm library, used for detecting file types, contains a flaw in its ZIP-based format probing: when fileTypeFromBuffer(), fileTypeFromBlob(), or fileTypeFromFile() is given a known-size input, the ZIP inflate output limit is not enforced, so a small crafted ZIP can cause excessive memory growth. An attacker needs only to supply a crafted ZIP file to an application that passes it to these functions over the network, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:30Z"},"euvd":{"id":"EUVD-2026-12139","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sindresorhus-file-type-cve-2022-36313","parents":[{"from":"CVE-2026-31808","to":"CVE-2026-32630","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:file-type","fromFixed":"21.3.1","toFixed":"21.3.2","daysApart":3},{"kind":"same-code","provenance":"machine","files":["core.js","test.js"],"commits":["https://github.com/sindresorhus/file-type/commit/319abf871b50ba2fa221b4a7050059f1ae096f4f","https://github.com/sindresorhus/file-type/commit/399b0f156063f5aeb1c124a7fd61028f3ea7c124","https://github.com/sindresorhus/file-type/commit/a155cd71323279de173c54e8c530d300d3854fdd"],"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"]}]}],"packageHistory":[{"cve":"CVE-2022-36313","published":"2022-07-21","fixed":"17.1.3","kev":false},{"cve":"CVE-2026-31808","published":"2026-03-10","fixed":"21.3.1","kev":false},{"cve":"CVE-2026-32630","published":"2026-03-13","fixed":"21.3.2","kev":false}],"package":"npm:file-type"}}