Ad

CVE-2026-32630

MEDIUM CVSS 3.1: 5.3 EPSS 0.07%
Updated Mar 17, 2026
Payload
Parameter Value
CVSS 5.3 (MEDIUM)
Affected Versions 20.0.0 — 21.3.2
Fixed In 21.3.2
Type CWE-409
Vendor Payload
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
Low
Partial disruption

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Sindresorhus File-Type
cpe:2.3:a:sindresorhus:file-type:*:*:*:*:*:node.js:*:*
20.0.0 21.3.2