CVE-2019-10759

CRITICAL9.9EPSS 0.97%

Sandbox Breakout / Arbitrary Code Execution in safer-eval

Published: 10/21/2019Modified: 3/13/2026
Also known as:GHSA-r3x4-wr4h-pw33

Description

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.

Affected packages (1)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1CRITICAL9.9CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

References (3)