Description
The package vm2 before 3.9.10 are 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.
Remediation
References
https://github.com/patriksimek/vm2/issues/444
https://github.com/patriksimek/vm2/pull/445
https://github.com/patriksimek/vm2/pull/445/commits/3a9876482be487b78a90ac459675da7f83f46d69
https://security.snyk.io/vuln/SNYK-JS-VM2-2990237
Related Vulnerabilities
CVE-2021-25945 Vulnerability in npm package js-extend
CVE-2021-23337 Vulnerability in maven package org.webjars.npm:lodash.template
CVE-2023-22493 Vulnerability in npm package rsshub
CVE-2020-9480 Vulnerability in maven package org.apache.spark:spark-network-common_2.11
CVE-2014-0168 Vulnerability in maven package org.jolokia:jolokia-core