debug@1.0.4 vulnerabilities

Lightweight debugging utility for Node.js and the browser

Direct Vulnerabilities

Known vulnerabilities in the debug 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
  • L
Regular Expression Denial of Service (ReDoS)

debug is a small debugging utility.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the function useColors via manipulation of the str argument. The vulnerability can cause a very low impact of about 2 seconds of matching time for data 50k characters long.

Note: CVE-2017-20165 is a duplicate of this vulnerability.

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

Upgrade debug to version 2.6.9, 3.1.0, 3.2.7, 4.3.1 or higher.

>=1.0.0 <2.6.9 >=3.0.0 <3.1.0 >=3.2.0 <3.2.7 >=4.0.0 <4.3.1