Command Injection Affecting @npmcli/git package, versions <2.0.8


0.0
medium
0
10

Snyk CVSS

    Attack Complexity High
    User Interaction Required
    Confidentiality High
    Integrity High

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-NPMCLIGIT-1536784
  • published 6 Aug 2021
  • disclosed 5 Aug 2021
  • credit Anonymous

Introduced: 5 Aug 2021

CVE NOT AVAILABLE CWE-78 Open this link in a new tab

How to fix?

Upgrade @npmcli/git to version 2.0.8 or higher.

Overview

@npmcli/git is an A utility for spawning git from npm CLI contexts.

Affected versions of this package are vulnerable to Command Injection due to improper argument sanitization when npmcli/git is used to execute Git commands based on user controlled input.

References