Skip to content

mime Regular Expression Denial of Service when MIME lookup performed on untrusted user input

High severity GitHub Reviewed Published Jul 20, 2018 to the GitHub Advisory Database • Updated Sep 12, 2023

Package

npm mime (npm)

Affected versions

< 1.4.1
>= 2.0.0, < 2.0.3

Patched versions

1.4.1
2.0.3

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.

References

Published to the GitHub Advisory Database Jul 20, 2018
Reviewed Jun 16, 2020
Last updated Sep 12, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

CVE ID

CVE-2017-16138

GHSA ID

GHSA-wrvr-8mpx-r7pp

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.