get-npm-package-version@1.0.4 vulnerabilities

get npm package version

  • latest version

    1.1.1

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    2 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the get-npm-package-version package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable 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