logo

CVE-2017-16088 safe-eval

Package

Manager: npm
Name: safe-eval
Vulnerable Version: >=0 <=0.3.0

Severity

Level: Critical

CVSS v3.1: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

EPSS: 0.02953 pctl0.85941

Details

Sandbox Breakout in safe-eval Affected versions of `safe-eval` are vulnerable to a sandbox escape. By accessing object constructors, un-sanitized user input can access the entire standard library and effectively break out of the sandbox. ## Proof of Concept: This code accesses the process object and calls `.exit()` ```js var safeEval = require('safe-eval'); safeEval("this.constructor.constructor('return process')().exit()"); ``` ## Recommendation Update to version 0.4.0 or later

Metadata

Created: 2018-07-18T18:28:10Z
Modified: 2023-09-11T22:19:18Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-ww6v-677g-p656/GHSA-ww6v-677g-p656.json
CWE IDs: ["CWE-610"]
Alternative ID: GHSA-ww6v-677g-p656
Finding: F063
Auto approve: 1