Command Injection Affecting @npmcli/git package, versions <2.0.8
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
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