CVE-2025-59046CWE-77

interactive-git-checkout has Command Injection vulnerability

Critical · published September 9, 2025

CVSS v3.1
9.8
EPSS
1%
Percentile
66.5
In the wild
Unconfirmed
What it is

🚨 A single unchecked branch name can lead to full command injection! With the npm package `interactive-git-checkout`, just a misplaced character could let attackers run scripts they choose! 🔥 Think of it like a restaurant where customers order meals, but the kitchen takes the order without verifying the ingredients. If someone orders a "magic potion", the kitchen might whip up something explosive without a second thought! An attacker could exploit this vulnerability to run arbitrary commands on your system, potentially leaking sensitive data or compromising the entire environment. This could lead to devastating data losses or even a complete system takeover, which is absolutely catastrophic!

Put simply

Think of it like a restaurant where customers order meals, but the kitchen takes the order without verifying the ingredients. If someone orders a "magic potion", the kitchen might whip up something explosive without a second thought! Versions up to and including 1.1.4 of the `interactive-git-checkout` package pass user input directly to the `git checkout` command via Node.js's `exec()` function, without proper validation or sanitization, allowing command injection attacks.

What to do

An attacker could exploit this vulnerability to run arbitrary commands on your system, potentially leaking sensitive data or compromising the entire environment. This could lead to devastating data losses or even a complete system takeover, which is absolutely catastrophic! Update `interactive-git-checkout` to version 1.1.5 or later immediately to close this vulnerability. Ensure you review any existing scripts that use this package to ensure they handle user inputs safely in the future. You've got this! With a quick update, you can secure your environment and maintain your superhero status! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01146 · 66.5th percentile
Weakness
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
Published
2025-09-09T22:33Z
EPSS history
Timeline
  • 09 SEP 22:33Z
    interactive-git-checkout has Command Injection vulnerability
    cvelistv5