CVE-2025-59046
JavaScript vulnerability analysis and mitigation

Overview

The npm package interactive-git-checkout (versions up to and including 1.1.4) contains a command injection vulnerability identified as CVE-2025-59046. The vulnerability was discovered and disclosed on September 9, 2025. The package is an interactive command-line tool that allows users to checkout git branches by prompting for branch names. The vulnerability affects all versions of the package up to version 1.1.4 (GitHub Advisory, NVD).

Technical details

The vulnerability stems from improper input validation when passing branch names to the git checkout command. The software uses the Node.js child process module's exec() function without proper input sanitization, allowing for command injection. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating high severity across confidentiality, integrity, and availability impacts (GitHub Advisory).

Impact

If exploited, this vulnerability allows attackers to execute arbitrary commands on the system where the package is installed. The high CVSS score indicates that successful exploitation could lead to complete system compromise, with potential impacts including unauthorized access to sensitive data, system modification, and service disruption (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in commit 8dd832dd302af287a61611f4f85e157cd1c6bb41, which replaces the vulnerable exec() function with execFile() to prevent command injection. Users should update their installations to versions containing this fix. If updating is not immediately possible, users should carefully validate branch names before using the tool (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55182CRITICAL10
  • JavaScriptJavaScript
  • react
NoYesDec 03, 2025
CVE-2025-66401CRITICAL9.8
  • JavaScriptJavaScript
  • mcp-watch
NoNoDec 01, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66405MEDIUM6.9
  • JavaScriptJavaScript
  • @portkey-ai/gateway
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management