Arbitrary Command Injection Affecting interactive-git-checkout package, versions >=0.0.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.18% (64th percentile)

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 Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-INTERACTIVEGITCHECKOUT-12704858
  • published16 Sept 2025
  • disclosed10 Sept 2025
  • creditLiran Tal

Introduced: 10 Sep 2025

CVE-2025-59046  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

interactive-git-checkout is a CLI for simple branch switching

Affected versions of this package are vulnerable to Arbitrary Command Injection due to using exec function without proper input validation or sanitization. An attacker can execute arbitrary system commands by supplying specially crafted input when prompted for the branch name.

References

CVSS Base Scores

version 4.0
version 3.1