Skip to main content
← All vulnerabilities
CVE-2026-32630GHSA-J47W-4G3G-C36V

file-type affected by ZIP Decompression Bomb DoS via [Content_Types].xml entry

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 21.3.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • sindresorhus file-type

    From 20.0.0 · fixed in 21.3.2

  • file-typenpm

    From 20.0.0 · fixed in 21.3.2

References 2

GitHub · sindresorhus/file-type