broofa/mime · Security
mime Regular Expression Denial of Service when MIME lookup performed on untrusted user input
- GHSA ID
- GHSA-wrvr-8mpx-r7pp
- CVE ID
- CVE-2017-16138
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 7.5 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Description
Affected versions of mime are vulnerable to regular expression denial of service when a mime lookup is performed on untrusted user input.
Recommendation
Update to version 2.0.3 or later.
CWEs
- CWE-400 · Uncontrolled Resource Consumption
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-16138 ↗
- https://github.com/broofa/node-mime/issues/167 ↗
- https://github.com/broofa/mime/commit/1df903fdeb9ae7eaa048795b8d580ce2c98f40b0 ↗
- https://github.com/broofa/mime/commit/855d0c4b8b22e4a80b9401a81f2872058eae274d ↗
- https://github.com/advisories/GHSA-wrvr-8mpx-r7pp ↗