sandbox.js:223-228 uses vm.runInContext() thinking it s a safe sandbox. it s not.
extension can break out through the prototype chain and get their hands on process or require
Node.js docs literally say: "The node:vm module is not a security mechanism. Do not use it to run untrusted code.» (click). It s designed for executing code in diff contexts, not for keeping melicious code contained
extension that wants to escape can do it trivially. the whole sandbox is just a false sense of security.
fix: replace with a real sandbox pls like isolated-vm or run extension in a separate process with restricted permission, don t rely on vm for anything security-sensitive
sandbox.js:223-228usesvm.runInContext()thinking it s a safe sandbox. it s not.extension can break out through the prototype chain and get their hands on
processorrequireNode.js docs literally say: "The
node:vmmodule is not a security mechanism. Do not use it to run untrusted code.» (click). It s designed for executing code in diff contexts, not for keeping melicious code containedextension that wants to escape can do it trivially. the whole sandbox is just a false sense of security.
fix: replace with a real sandbox pls like
isolated-vmor run extension in a separate process with restricted permission, don t rely onvmfor anything security-sensitive