~ / search / GHSA-r3x4-wr4h-pw33

GHSA-r3x4-wr4h-pw33

Sandbox Breakout / Arbitrary Code Execution in safer-eval

Source: GitHub Advisory Database (reviewed) Critical CVE-2019-10759

Packages

EcosystemPackageAffectedFixed in
npm safer-eval < 1.3.4 1.3.4

Details

As written in the advisory (Markdown source, shown as plain text).

Versions of `safer-eval` prior to 1.3.4 are vulnerable to Sandbox Escape leading to Remote Code Execution. A payload using constructor properties can escape the sandbox and execute arbitrary code. For example, evaluating he string `console.constructor.constructor('return process')().env` prints `process.env` to the console. ## Recommendation Upgrade to version 1.3.4 or later.

References

External links from the advisory. They lead to third-party sites.