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

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

On Hacker News

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.