safer-eval@1.3.2 vulnerabilities

harmful as eval

Direct Vulnerabilities

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

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable Version
  • C
Arbitrary Code Execution

safer-eval is a safer approach for eval in node and browser.

Affected versions of this package are vulnerable to Arbitrary Code Execution via generating a RangeError: Maximum call stack size exceeded.

How to fix Arbitrary Code Execution?

A fix was pushed into the master branch but not yet published.

*
  • C
Arbitrary Code Execution

safer-eval is a safer approach for eval in node and browser.

Affected versions of this package are vulnerable to Arbitrary Code Execution. A payload using constructor properties can escape the sandbox and execute arbitrary code.

How to fix Arbitrary Code Execution?

Upgrade safer-eval to version 1.3.4 or higher.

<1.3.4