async-git@1.4.0 vulnerabilities

👾 Retrieve data from current git repository

  • latest version

    1.13.3

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    3 years ago

  • licenses detected

    • >=1.0.0-alpha.2 <1.13.3
  • Direct Vulnerabilities

    Known vulnerabilities in the async-git 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
    • C
    Command Injection

    async-git is a 👾 Retrieve data from current git repository

    Affected versions of this package are vulnerable to Command Injection via shell meta-characters (back-ticks). For example: git.reset('atouch HACKEDb')

    How to fix Command Injection?

    Upgrade async-git to version 1.13.2 or higher.

    <1.13.2
    • H
    Command Injection

    async-git is a 👾 Retrieve data from current git repository

    Affected versions of this package are vulnerable to Command Injection via shell metacharacters, as demonstrated by git.reset and git.tag.

    POC

    git.reset('; touch HACKED #'); // file "HACKED" was created
    git.tag('; touch HACKED #'); // file "HACKED" was created
    

    How to fix Command Injection?

    Upgrade async-git to version 1.13.1 or higher.

    <1.13.1