CVE-2026-32630: sindresorhus file-type
Vulnerability summary
CVE-2026-32630 is a medium (CVSS 5.3) vulnerability in sindresorhus file-type. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 37.9% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 13-03-2026PublishedVulnerability first disclosed.
- 16-03-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · NpmEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.45%
Chance of exploitation in the next 30 days
Percentile
38%
Versus all other CVEs
30-day change
+0.15 pp
From 0.30% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundFile Type
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard1 product
- redisinsight< 3.2.0-r2
Npm1 product
- file-type≥ 20.0.0, < 21.3.2
Sindresorhus1 product
- file-type≥ 20.0.0, < 21.3.2
3 vendors · 3 products
References
7 links- github.com/sindresorhus/file-type/security/advisories/GHSA-j47w-4g3g-c36vX Refsource CONFIRMWEBAdvisoryExploitVendor Advisory
- github.com/sindresorhus/file-type/commit/399b0f156063f5aeb1c124a7fd61028f3ea7c124X Refsource MISCWEBFIXPatch