All the vulnerabilities related to the version 0.5.1 of the package
Command Injection in fs-git
Affected versions of fs-git
do not sanitize strings passed into the buildCommand
method, resulting in arbitrary code execution.
Update to version 1.0.2 or later.
fs-git command injection vulnerability
fs-git is a file system like api for git repository. The fs-git version 1.0.1 module relies on child_process.exec, however, the buildCommand method used to construct exec strings does not properly sanitize data and is vulnerable to command injection across all methods that use it and call exec.