GHSA-jp99-5h8w-gmxc: @zhaoyao91/eval in vm Sandbox Breakout / Arbitrary Code Vulnerability
CRITICALGHSA-jp99-5h8w-gmxc is a CRITICAL sandbox breakout / arbitrary code vulnerability (General Security Weakness) affecting @zhaoyao91/eval in vm libraries in the npm ecosystem. The issue involves sandbox breakout / arbitrary code execution in @zhaoyao91/eval-in-vm. Remediation is available in the latest vendor maintenance releases.
GHSA-jp99-5h8w-gmxc at a Glance
How to Fix GHSA-jp99-5h8w-gmxc
To remediate this vulnerability, upgrade all affected @zhaoyao91/eval in vm dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @zhaoyao91/eval-in-vm@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @zhaoyao91/eval-in-vm
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-jp99-5h8w-gmxc, inspect your project dependencies using npm:
npm ls @zhaoyao91/eval-in-vm
Analyze the terminal output to locate any version of @zhaoyao91/eval in vm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls @zhaoyao91/eval-in-vm command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In @zhaoyao91/eval in vm, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-jp99-5h8w-gmxc Affected @zhaoyao91/eval in vm Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@zhaoyao91/eval-in-vm
|
npm |
≥ 0.0.0
|
|
References
Frequently Asked Questions
What is GHSA-jp99-5h8w-gmxc?
Which @zhaoyao91/eval in vm versions are affected?
What version fixes GHSA-jp99-5h8w-gmxc?
Is @zhaoyao91/eval-in-vm affected?
What CWE is associated with GHSA-jp99-5h8w-gmxc?
How can I check npm dependencies for GHSA-jp99-5h8w-gmxc?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jp99-5h8w-gmxc",
"modified" : "2020-08-31T18:55:02Z",
"published" : "2020-09-04T15:03:13Z",
"aliases" : [ ],
"summary" : "Sandbox Breakout / Arbitrary Code Execution in @zhaoyao91/eval-in-vm",
"details" : "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`.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@zhaoyao91/eval-in-vm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1320"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:55:02Z",
"nvd_published_at" : null
}
}