Install
mime
A comprehensive library for mime-type mapping
4.1.2Latest, 27 Oct 2026
944MDownloads, last month
0Advisories on the latest
1Advisories, all versions
MITLicence
2.4KStars
3.9/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| High | mime Regular Expression Denial of Service when MIME lookup performed on untrusted user input CVE-2017-16138 | Fixed in 2.0.3, 1.4.1 | 20 Jul 2018 |
In the news
- How Browser-Side PDF Unlocking Works: Owner Lock vs. User Encryption (and the .mjs Worker MIME Trap) dev.to, 25 Nov 2026
- X-Content-Type-Options: nosniff and MIME Sniffing Attacks dev.to, 21 Nov 2026
- Kendall Jenner blasted over 'fake' makeup tutorial for L'Oreal Paris: 'Just pure miming' dailymail.com, 20 Nov 2026
- Properly configuring server MIME types developer.mozilla.org, 15 Nov 2026
- Laravel 13 Image Validation Rules: image, mimes, max and dimensions yasiramin.dev, 8 Nov 2026
On Hacker News
- EFail – Vulnerabilities in end-to-end encryption technologies OpenPGP and S/MIME 718 points, 288 comments, 14 May 2018
- Username ending with MIME type format is not allowed 396 points, 277 comments, 15 Sep 2021
- A new set of vulnerabilities affecting users of PGP and S/MIME 288 points, 68 comments, 14 May 2018
- We just open sourced Flanker, our Python email address and Mime parsing library 160 points, 26 comments, 14 Nov 2013
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.