What’s Vulnerable › Vulnerabilities
CVE-2017-16138: mime Regular Expression Denial of Service when MIME lookup performed on untrusted user input
- Severity: high (CVSS 7.5 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2018-06-07 · updated 2026-10-07
- Weakness: CWE-400
Description
The mime module < 1.4.1, 2.0.1, 2.0.2 is vulnerable to regular expression denial of service when a mime lookup is performed on untrusted user input.
Affected products
- HackerOne mime node module: before 1.4.1; from 2.0.1 before 2.0.3 — fixed in 1.4.1, 2.0.3
- Npm Mime: from 2.0.0 before 2.0.3; before 1.4.1 — fixed in 2.0.3, 1.4.1
How to fix
Upgrade to a fixed version: HackerOne mime node module 1.4.1, 2.0.3; Npm Mime 2.0.3, 1.4.1. Check the vendor advisory for mitigations.
References
- https://github.com/broofa/node-mime/issues/167
- https://nodesecurity.io/advisories/535
- https://github.com/broofa/node-mime/issues/167
- https://nodesecurity.io/advisories/535
Get alerted when CVE-2017-16138 or the next vulnerability affects your stack