Home / sindresorhus / file-type / CVE-2026-32630
CVE-2026-32630: is it exploited, and which versions of sindresorhus file-type are affected and fixed?
CVE-2026-32630 is an improper Handling of Highly Compressed Data (Data Amplification) vulnerability in sindresorhus file-type. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: file-type from 20.0.0 before 21.3.2 (GitHub advisory GHSA-j47w-4g3g-c36v). Fixed in 21.3.2 (GitHub advisory GHSA-j47w-4g3g-c36v). Severity: Medium (5.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:12 UTC.
What is CVE-2026-32630?
file-type affected by ZIP Decompression Bomb DoS via [Content_Types].xml entry
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.
From the CVE record by GitHub_M, last updated March 16, 2026, 16:59 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| sindresorhus | file-type | >= 20.0.0, < 21.3.2 |
As the CVE record by GitHub_M states it, last updated March 16, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | file-type | >= 20.0.0, < 21.3.2 | 21.3.2 | GHSA-j47w-4g3g-c36v |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 16, 2026. Summary: file-type: ZIP Decompression Bomb DoS via [Content_Types].xml entry.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| sindresorhus | file-type | from 20.0.0 before 21.3.2 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 10:36 UTC.
How severe is CVE-2026-32630?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-32630 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, March 16, 2026)
- EPSS
- 0.35% probability of exploitation activity in the next 30 days, percentile 30.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-409 Improper Handling of Highly Compressed Data (Data Amplification)
- CWE-400 Uncontrolled Resource Consumption
Where are the vendor advisories and references?
- https://github.com/sindresorhus/file-type/security/advisories/GHSA-j47w-4g3g-c36v x_refsource_CONFIRM
- https://github.com/sindresorhus/file-type/commit/399b0f156063f5aeb1c124a7fd61028f3ea7c124 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- March 12, 2026
- Published
- March 13, 2026, 20:54 UTC
- CVE record updated
- March 16, 2026, 16:59 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 10:36 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:12 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect file-type?
- Mar 10, 2026CVE-2026-31808 sindresorhus file-type: infinite loop (denial of service)
- Jul 21, 2022CVE-2022-36313 Sindresorhus File-type: infinite loop (denial of service)
Questions about CVE-2026-32630
Is CVE-2026-32630 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.35% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of sindresorhus file-type are affected by CVE-2026-32630?
file-type from 20.0.0 before 21.3.2, per the GitHub advisory GHSA-j47w-4g3g-c36v. The tables above give every range the sources list.
Which version fixes CVE-2026-32630?
21.3.2, per the GitHub advisory GHSA-j47w-4g3g-c36v. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-32630?
Medium (5.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-32630?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.