mocha@8.1.2 vulnerabilities

simple, flexible, fun test framework

Direct Vulnerabilities

Known vulnerabilities in the mocha 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)

mocha is a javascript test framework for node.js & the browser.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the clean function in utils.js.

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

Upgrade mocha to version 10.1.0 or higher.

<10.1.0