get-npm-package-version@1.0.6 vulnerabilities

get npm package version

Direct Vulnerabilities

Known vulnerabilities in the get-npm-package-version 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
Command Injection

Affected versions of this package are vulnerable to Command Injection via main function in index.js.

PoC

var a = require("get-npm-package-version");
a("& touch JHU");

How to fix Command Injection?

Upgrade get-npm-package-version to version 1.0.7 or higher.

<1.0.7