Skip to content

Sandbox Breakout / Arbitrary Code Execution in safer-eval

Critical severity GitHub Reviewed Published Sep 3, 2020 to the GitHub Advisory Database • Updated Jan 9, 2023

Package

npm safer-eval (npm)

Affected versions

>= 0.0.0

Patched versions

None

Description

All versions of safer-eval are vulnerable to Sandbox Escape leading to Remote Code Execution. It is possible to escape the sandbox by forcing exceptions recursively in the evaluated code. This may allow attacker to execute arbitrary code in the system.

Recommendation

The package is not suited to receive arbitrary user input. Consider using an alternative package.

References

Reviewed Aug 31, 2020
Published to the GitHub Advisory Database Sep 3, 2020
Last updated Jan 9, 2023

Severity

Critical

Weaknesses

No CWEs

CVE ID

No known CVE

GHSA ID

GHSA-876r-hj45-fw7g

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.