async-git@1.3.2 vulnerabilities

👾 Retrieve data from current git repository

Direct Vulnerabilities

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