Property
Languagejavascript
Severitymedium
CWECWE-94: Improper Control of Generation of Code (‘Code Injection’)
OWASPA03:2021 - Injection
Confidence LevelLow
Impact LevelHigh
Likelihood LevelLow

Description#

Untrusted user input is being passed directly into the ‘sandbox’ context of vm2 or NodeVM. This allows users to control the execution environment, which can lead to code injection vulnerabilities.

Impact#

An attacker could manipulate the sandbox environment to execute arbitrary code, potentially escaping the sandbox, accessing sensitive data, or taking control of the server. This puts your application and its users at serious risk of data breaches or server compromise.