CVE-2019-10769:
Sandbox Breakout / Arbitrary Code Execution in safer-eval
9.8
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
12/11/2019
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
safer-eval | npm | <= 1.3.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from saferEval's inability to properly restrict access to the main execution context. The PoC demonstrates prototype pollution via Buffer.prototype.write and constructor.constructor chaining to access the 'process' object. Since saferEval is explicitly designed as the package's main evaluation entry point and the advisory states the package isn't suitable for user input processing, this function directly enables the sandbox escape when processing untrusted input.