slugify@1.0.2 vulnerabilities

Slugifies a String

Direct Vulnerabilities

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

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Regular Expression Denial of Service (ReDoS)

slugify 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.

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

Upgrade slugify to version 1.3.1 or higher.

<1.3.1