slug@0.3.1 vulnerabilities

slugifies even utf-8 chars!

  • latest version

    11.0.1

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    2 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

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

    slug is a package that slugifies every string.

    Affected versions of this package are vulnerable to Regular expression Denial of Service (ReDoS). It uses the following regex /^\s+|\s+$/g in order to trim whitespaces, which can cause a slowdown of 2 seconds for 50k characters.

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

    Upgrade slug to version 0.9.2 or higher.

    <0.9.2