VDB
Sign up
CRITICAL9.9

GHSA-r3x4-wr4h-pw33

Sandbox Breakout / Arbitrary Code Execution in safer-eval

Quick fix

GHSA-r3x4-wr4h-pw33 — safer-eval: upgrade to the fixed version with the command below.

npm install safer-eval@1.3.4

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/safer-eval
Introduced in: 0Fixed in: 1.3.4
Fixnpm install safer-eval@1.3.4

References