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. Learn more

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 Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NPMCLIGIT-1536784
  • published6 Aug 2021
  • disclosed5 Aug 2021
  • creditAnonymous

Introduced: 5 Aug 2021

CVE NOT AVAILABLE CWE-78  (opens 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