Medium severity · published Mar 13, 2026
CVE-2026-32630
file-type affected by ZIP Decompression Bomb DoS via [Content_Types].xml entry
5.3
CVSS
0.3%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 24% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FI
file-type · sindresorhus
>= 20.0.0, < 21.3.2 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-32630
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-32630
Patch
https://github.com/sindresorhus/file-type/commit/399b0f156063f5aeb1c124a7fd61028f3ea7c124
Exploit
https://github.com/sindresorhus/file-type/security/advisories/GHSA-j47w-4g3g-c36v
More from file-type
5.5
CVE-2022-36313
An issue was discovered in the file-type package before 16.5.4 and 17.x before 17.1.3 for Node.js
5.3
CVE-2026-31808
file-type affected by infinite loop in ASF parser on malformed input with zero-size sub-header
