ADVISORIES

Vulnerability

CVE-2026-32630

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.

3 advisories report this vulnerability, across 2 ecosystems.

Medium severity All Chainguard 2npm 1

Advisories

  • CGA-j6wj-gj35-6f4h
    CVE-2026-32630 Chainguard Updated 5 November 2026
  • CGA-rpwr-pxp3-rw9p
    CVE-2026-32630 Chainguard Updated 5 November 2026
  • GHSA-j47w-4g3g-c36v

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

    Moderate CVE-2026-32630 npm Updated 10 September 2026

References