Install
file-type
Detect the file type of a file, stream, or data
22.3.0Latest, 29 Oct 2026
351MDownloads, last month
0Advisories on the latest
3Advisories, all versions
MITLicence
4.3KStars
2.6/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Moderate | file-type: ZIP Decompression Bomb DoS via [Content_Types].xml entry CVE-2026-32630 | Fixed in 21.3.2 | 13 Mar 2026 |
| Moderate | file-type affected by infinite loop in ASF parser on malformed input with zero-size sub-header CVE-2026-31808 | Fixed in 21.3.1 | 10 Mar 2026 |
| High | file-type vulnerable to Infinite Loop via malformed MKV file CVE-2022-36313 | Fixed in 16.5.4, 17.1.3 | 22 Jul 2022 |
In the news
- Microsoft extends the Outlook naughty step with two more file types theregister.com, 6 Oct 2026
- Tiiny Host Gives AI Agents the Power to Publish Anything Online: 100+ File Types, Zero Friction, One Sentence financialcontent.com, 20 Apr 2026
- Merging Multiple File Types into One PDF in C# dev.to, 21 Nov 2025
- The Usual Suspects: 9 Dangerous File Types Every CISO Should Know securityboulevard.com, 4 Nov 2025
- The 8 Most Dangerous File Types for Malware Infections securityboulevard.com, 14 Oct 2025
On Hacker News
- Magika: AI powered fast and efficient file type identification 695 points, 251 comments, 16 Feb 2024
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.