vm2
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Securely!
9
Versions
MIT
License
No
Install Scripts
Verified
Provenance
Supply chain provenance
Status for the latest visible version.
SLSA provenance attestation
npm registry signatures
gitHead linked
Maintainers
patriksimek
Keywords
sandboxprisonjailvmalcatrazcontextify
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| semgrep | semgrep:eval-usage | AI (semgrep): eval() in bridge.js is used to conditionally define AsyncGeneratorFunction for Node <10 compatibility — a documented, intentional pattern in the vm2 codebase, not a supply-chain indicator. | ai | |
| semgrep | semgrep:dynamic-require | AI (semgrep): Dynamic require in resolver-compat.js is the intentional module resolution mechanism for vm2's sandbox; not an independent risk signal for this package. | ai |