script-manager@0.4.2 vulnerabilities

Manager for running foreign and potentionally dangerous scripts in the cluster

Direct Vulnerabilities

Known vulnerabilities in the script-manager package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Arbitrary Code Execution

script-manager is a manager for running foreign and potentially dangerous scripts in the cluster.

Affected versions of this package are vulnerable to Arbitrary Code Execution. It runs HTTP server as a child process and sends requests to this server. The server dynamically loads (with help of require()) some parts of the code, as long as the path to the required code depends on the data from the request (req.body.options.execModulePath). If an attacker knows the port of the server, it is possible to load code that was not intended to execute.

How to fix Arbitrary Code Execution?

Upgrade script-manager to version 0.9.0 or higher.

<0.9.0