file-type affected by ZIP Decompression Bomb DoS via [Content_Types].xml entry
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sindresorhus | file-type | 20.0.0 to before 21.3.2 | 21.3.2 | Patch available | CNA |
| — | file-type (npm) | 20.0.0 to before 21.3.2 | 21.3.2 | Patch available | GHSA-j47w-4g3g-c36v |
- file-type Vendorsindresorhus Affected 20.0.0 to before 21.3.2 Fixed in 21.3.2 Patch available CNA
- file-type (npm) Vendor— Affected 20.0.0 to before 21.3.2 Fixed in 21.3.2 Patch available GHSA-j47w-4g3g-c36v
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:sindresorhus:file-type:*:*:*:*:*:node.js:*:* | 20.0.0 to before 21.3.2 | Vulnerable | sindresorhus |
- cpe:2.3:a:sindresorhus:file-type:*:*:*:*:*:node.js:*:* Versions 20.0.0 to before 21.3.2 Vulnerable ·sindresorhus
Remediation
- Fix · CNA file-type (sindresorhus) Fixed in 21.3.2
- Fix · GHSA-j47w-4g3g-c36v file-type (npm) Fixed in 21.3.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Developer Hub 1 | Affected | No fix yet: Fix deferred |
Not affected: 8 products
- Cryostat 4
- Logging Subsystem for Red Hat OpenShift
- Red Hat Data Grid 8
- Red Hat Enterprise Linux AI (RHEL AI) 3
- Red Hat OpenShift Dev Spaces
- Red Hat Satellite 6
- Red Hat build of Apicurio Registry 2
- Self-service automation portal 2
Timeline
- 2026-10-02 Threatist record created from CVE-2026-32630
- 2026-10-03 Alias added: GHSA-j47w-4g3g-c36v
- 2026-10-27 Affected versions changed · Red Hat
References
More sindresorhus File-type vulnerabilities
- TI-2026-24363 file-type affected by infinite loop in ASF parser on malformed input with zero-size sub-header CVSS 3.1MEDIUM 5.3
- TI-2022-16660 An issue was discovered in the file-type package before 16.5.4 and 17.x before 17.1.3 for… CVSS 3.1MEDIUM 5.5
Sources
- CVE-2026-32630 · CVE Program
- CVE-2026-32630 · NVD
- FIRST EPSS
- GHSA-j47w-4g3g-c36v · GitHub Advisory Database · CC BY 4.0
- CVE-2026-32630 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences