Skip to content

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

MediumCVSS 5.3 EPSS 0.35%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
Red Hat

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.

Upgrade path

3 packages: 2 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
redhat/rhdh/rhdh-hub-rhel9(Red Hat rhdh 1) All versions No fix listed No fix yet
npm file-type(npm) >= 20.0.0, < 21.3.2; >= 20.0.0, <= 21.3.1 21.3.2 Fixed
sindresorhus file-type = >= 20.0.0, < 21.3.2; >= 20.0.0, < 21.3.2 21.3.2 Fixed

Affected products

ProductAffected versionsFixed in
sindresorhus file-type = >= 20.0.0, < 21.3.2 No fix listed
npm file-type(npm) >= 20.0.0, <= 21.3.1 No fix listed
redhat/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) All versions No fix listed
sindresorhus file-type >= 20.0.0, < 21.3.2 21.3.2
npm file-type(npm) >= 20.0.0, < 21.3.2 21.3.2

References