Description
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.4, Symbol.for override in setup-sandbox.js only intercepts 2 of 9 dangerous Node.js cross-realm symbols. Combined with the bridge's set/defineProperty/deleteProperty traps having no isDangerousCrossRealmSymbol key check, sandbox code can obtain real cross-realm symbols, write them to host objects, and control host-side behavior — verified with a full util.promisify hijack chain. This issue has been patched in version 3.11.4.
Problem types
CWE-693: Protection Mechanism Failure
Product status
References
github.com/...ek/vm2/security/advisories/GHSA-m5q2-4fm3-vfqp
github.com/...ommit/928aef51898b5c52a05f05a40c4cfeb52e172878
github.com/patriksimek/vm2/releases/tag/v3.11.4