mimer@0.2.0 vulnerabilities

A simple Mime type getter

  • latest version

    2.0.2

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    3 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the mimer package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Regular Expression Denial of Service (ReDoS)

    mimer contains interfaces for IO that make use of promises.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks. It used a regular expression (^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$) in order to parse UNIX paths to get the extension. This can cause an impact of about 10 seconds matching time for data 50K characters long.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade mimer to version 0.3.0 or higher.

    <0.3.0