Skip to main content
VulnerabilityPublished Updated

CVE-2026-32630: sindresorhus file-type · Data Amplification

Affects sindresorhus file-typeSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.3 Medium : upgrade to 21.3.2 when convenient.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 21.3.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade sindresorhus file-type to 21.3.2.

Affected software

ProductAffectedFixed in
sindresorhusfile-typeAffected
  • >=20.0.0 <21.3.2
Fixed in
  • 21.3.2

AI-suggested

To mitigate this vulnerability, organizations should upgrade the sindresorhus file-type library to version 21.3.2 or later, where the issue is fixed. If immediate upgrade is not feasible, implement input validation and size checks on ZIP files before processing them with file-type detection functions. Limit the size of files accepted for type detection and reject suspiciously small compressed files that could decompress into large payloads. Employ resource usage monitoring and impose memory usage limits on processes handling file uploads to detect and prevent excessive consumption. Consider sandboxing or isolating file-type detection operations to contain potential denial of service effects. Additionally, review and update dependency management practices to ensure timely application of security patches in third-party libraries. Finally, monitor application logs for unusual memory usage patterns or crashes related to file processing.

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.

References

Community reviews

Loading reviews…