| Package | Affected versions | Patched versions |
|---|---|---|
| github.com/cli/cli | < 1.2.1 | 1.2.1 |
GitHub CLI depends on a git.exe executable being found in system %PATH% on Windows. However, if a malicious .\git.exe or .\git.bat is found in the current working directory at the time of running gh, the malicious command will be invoked instead of the system one.
Windows users who run gh inside untrusted directories are affected.
Users should upgrade to GitHub CLI v1.2.1.
Other than avoiding untrusted repositories, there is no workaround.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free