GHSA-jp99-5h8w-gmxc

Suggest an improvement
Source
https://github.com/advisories/GHSA-jp99-5h8w-gmxc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-jp99-5h8w-gmxc/GHSA-jp99-5h8w-gmxc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jp99-5h8w-gmxc
Published
2020-09-04T15:03:13Z
Modified
2020-08-31T18:55:02Z
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.

Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

Database specific
{
    "cwe_ids":  [],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-31T18:55:02Z",
    "nvd_published_at":  null,
    "severity":  "CRITICAL"
}
References

Affected packages

npm / @zhaoyao91/eval-in-vm

Package

Name
@zhaoyao91/eval-in-vm
View open source insights on deps.dev
Purl
pkg:npm/%40zhaoyao91/eval-in-vm

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-jp99-5h8w-gmxc/GHSA-jp99-5h8w-gmxc.json"