mime is vulnerable to regular expression denial of service (ReDoS) attacks. The library does not restrict the type of characters that it takes in, causing the application to take a long time to process. A malicious user can use this behaviour to cause a ReDoS.