get-npm-package-version@1.0.5 vulnerabilities

get npm package version

  • latest version

    1.1.1

  • latest non vulnerable version

  • first published

    8 years ago

  • latest version published

    3 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.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    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