diff@3.0.1 vulnerabilities

A JavaScript text diff implementation.

Direct Vulnerabilities

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

diff is a javascript text differencing implementation.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). This can cause an impact of about 10 seconds matching time for data 48K characters long.

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

Upgrade diff to version 3.5.0 or higher.

>=3.0.0 <3.5.0