logo

GHSA-jp99-5h8w-gmxc @zhaoyao91/eval-in-vm

Package

Manager: npm
Name: @zhaoyao91/eval-in-vm
Vulnerable Version: >=0.0.0

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N/E:H/RL:U/RC:C

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

EPSS: N/A pctlN/A

Details

Sandbox Breakout / Arbitrary Code Execution in @zhaoyao91/eval-in-vm All versions of `@zhaoyao91/eval-in-vm` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through `this.constructor.constructor` . This may allow attackers to execute arbitrary code in the system. Evaluating the payload `this.constructor.constructor('return process.env')()` prints the contents of `process.env`. ## Recommendation No fix is currently available. Consider using an alternative package until a fix is made available.

Metadata

Created: 2020-09-04T15:03:13Z
Modified: 2020-08-31T18:55:02Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-jp99-5h8w-gmxc/GHSA-jp99-5h8w-gmxc.json
CWE IDs: []
Alternative ID: N/A
Finding: F422
Auto approve: 1