CVE-2017-16087: Command Injection in fs-git

fs-git Updated 02 Oct 2025

Summary

29/05/2019
Yes i
High
Not published

CVE-2017-16087: Command Injection in fs-git. Affects fs-git versions < 1.0.2. Fixed in 1.0.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The fs-git package is an npm package that provides functionality for interacting with the file system using Git commands. It allows users to perform various operations such as reading, writing, and manipulating files and directories. However, versions of fs-git prior to 1.0.2 are vulnerable to command injection, which can lead to arbitrary code execution.

Vulnerability Detail

The vulnerability in fs-git arises from the lack of sanitization of strings passed into the buildCommand method. This allows an attacker to inject malicious commands into the system, potentially leading to arbitrary code execution. The impact of this vulnerability can be severe, as it grants unauthorized access and control over the affected system. The vulnerability is classified as CWE-77.

How To Fix

Latest published version: 1.0.2 as of 22 Oct 2026

npm install fs-git@1.0.2

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update to the patched version of the fs-git package to mitigate the risk.

Conclusion

The fs-git package prior to version 1.0.2 is vulnerable to command injection, allowing arbitrary code execution. To mitigate this risk, it is crucial to update to version 1.0.2 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for fs-git →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary code on the affected system, potentially leading to unauthorized access and control.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will alert you if the vulnerability is present.

No, only versions prior to 1.0.2 are affected. It is recommended to update to version 1.0.2 or later to fix the vulnerability.

No, there is no known workaround. Updating to the patched version is the only solution.

Related vulnerabilities

Recent vulnerabilities recorded for fs-git.

How To Fix

Latest published version: 1.0.2 as of 22 Oct 2026

npm install fs-git@1.0.2

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback