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

Description#

User input from HTTP requests is being passed directly to Node.js’s ‘vm’ module functions without validation. This allows attackers to inject and execute arbitrary JavaScript code within your server.

Impact#

If exploited, an attacker could run malicious code with the application’s privileges, potentially accessing sensitive data, modifying server behavior, or taking control of the entire server. This can lead to data breaches, service disruption, or complete system compromise.