Skip to content

mime (npm)

Mime types for JavaScript

Advisories
2
Latest version
4.1.2
Released Oct 27, 2026
License
MIT
OpenSSF Scorecard
3.9 / 10

How to fix

Upgrading to 2.0.3 or later clears every advisory below that has a fix.

Upgrade commands
npm
npm install mime@4.1.2
yarn
yarn add mime@4.1.2
pnpm
pnpm add mime@4.1.2

Known vulnerabilities

AdvisorySeverityAffectedFixed in
GHSA-wrvr-8mpx-r7pp
mime Regular Expression Denial of Service when MIME lookup performed on untrusted user input
High
EPSS 2.12%
>= 2.0.0, < 2.0.3
2.0.3
GHSA-wrvr-8mpx-r7pp
mime Regular Expression Denial of Service when MIME lookup performed on untrusted user input
High
EPSS 2.12%
< 1.4.1
1.4.1

Source: git+https://github.com/broofa/mime.git

Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor