CVE-2019-10759:
Sandbox Breakout / Arbitrary Code Execution in safer-eval
10
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
10/21/2019
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
safer-eval | npm | < 1.3.4 | 1.3.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient sanitization of constructor properties in the sandbox environment. The security patch adds explicit overrides for context.console.constructor.constructor and modifies Object.constructor.constructor handling, indicating these properties were previously accessible. The exports.createContext function is responsible for setting up the execution context, and its pre-patch version allowed access to dangerous constructor chains. The added test cases specifically validate against console.constructor.constructor exploitation paths, confirming this as the primary vector.