The package vm2 before 3.9.10 is vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the WeakMap.prototype.set method. Exploiting this vulnerability leads to access to a host object and a sandbox compromise.
{
"severity": "CRITICAL",
"github_reviewed": true,
"cwe_ids": [
"CWE-94"
],
"github_reviewed_at": "2022-12-22T03:33:42Z",
"nvd_published_at": "2022-12-21T05:15:00Z"
}