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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

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

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.8 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    None