CVE-2017-16138 json
mime Regular Expression Denial of Service when MIME lookup performed on untrusted user input
published 2018-06-07 8 y ago modified 2026-10-07 32 d ago also GHSA-wrvr-8mpx-r7pp , EUVD-2018-0335
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm mime 1.4.1, 2.0.3
- mime_project mime 1.4.1, 2.0.3
- node-mime Debian 14, Debian 13, Debian 12 2.3.1-1
debian advisories DEBIAN-CVE-2017-16138
- github.com/broofa/mime@1df903f commit
- github.com/broofa/mime@855d0c4 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-16138 updated cvss 5.3
nodejs-mime: Regular expression Denial of Service
-
Red Hat OpenShift Enterprise 3 nodejs-mime Red Hat Software Collections rh-nodejs4-nodejs-mimeaffected: no fix planned “Will not fix”
-
Red Hat Virtualization 4 ovirt-engine-dashboardaffected: no fix planned “Out of support scope”
-
Red Hat Quay v3 quay/quay-rhel8 v3.6.0-62fixed: vendor fix RHSA-2021:3917
-
Red Hat Quay v3 quay/clair-rhel8 v3.6.0-70, quay/quay-builder-rhel8 v3.6.0-44, quay/quay-operator-rhel8 v3.6.0-43, quay/quay-operator-bundle v3.6.0-48, quay/quay-bridge-operator-rhel8 v3.6.0-40, quay/quay-bridge-operator-bundle v3.6.0-35, +3 more Red Hat Mobile Application Platform 4 rhmap-fh-aaa-docker, rhmap-fh-scm-docker, rhmap-fh-ngui-docker, rhmap-fh-mbaas-docker, rhmap-fh-statsd-docker, rhmap-fh-metrics-docker, +3 more Red Hat Virtualization 4 ovirt-engine-api-explorer, ovirt-engine-ui-extensionsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 33 d ago
Exploit prediction
2.12% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/broofa/node-mime/issues/167 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | mime | >=2.0.0, <2.0.3 <1.4.1 |
2.0.3 1.4.1 |
Affected products
- HackerOne mime node module
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/broofa/mime/commit/1df903fdeb9ae7eaa048795b8d580ce2c98f40b0
web
-
github.com
/broofa/mime/commit/855d0c4b8b22e4a80b9401a81f2872058eae274d
web
-
github.com
/broofa/node-mime/issues/167
web, exploit, third-party-advisory
-
nodesecurity.io
/advisories/535
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2017-16138
advisory
-
github.com
/broofa/mime
package
Sources
- CVE List CVE-2017-16138
- GitHub Advisory GHSA-wrvr-8mpx-r7pp
- NVD CVE-2017-16138
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.