jasmine-core@2.99.1 vulnerabilities

Simple JavaScript testing framework for browsers and node.js

Direct Vulnerabilities

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

jasmine-core is a Behavior Driven Development testing framework for JavaScript.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). It used a regular expression (^\s*function\s*(\w*)\s*\() in order to parse JS toString output on a function to get a function name. This can cause an impact of about 10 seconds matching time for data 64K characters long.

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

Upgrade jasmine-core to version 3.1.0 or higher.

<3.1.0