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-2023-49374 Vulnerability in maven package com.jfinal:jfinal
CVE-2022-23596 Vulnerability in maven package com.github.junrar:junrar
CVE-2017-18924 Vulnerability in npm package oauth2-server
CVE-2021-42697 Vulnerability in maven package com.typesafe.akka:akka-http_2.13
CVE-2023-37602 Vulnerability in maven package org.opencms:opencms-core