CVE-2025-59046
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe npm package `interactive-git-checkout` is an interactive command-line tool that allows users to checkout a git branch while it prompts for the branch name on the command-line. It is available as an npm package and can be installed via `npm install -g interactive-git-checkout`. Versions up to and including 1.1.4 of the `interactive-git-checkout` tool are vulnerable to a command injection vulnerability because the software passes the branch name to the `git checkout` command using the Node.js child process module's `exec()` function without proper input validation or sanitization. Commit 8dd832dd302af287a61611f4f85e157cd1c6bb41 fixes the issue.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe npm package 'interactive-git-checkout' versions 1.1.4 and earlier are vulnerable to command injection. The tool uses Node.js child_process.exec() to pass user-provided branch names directly to the git checkout command without validating or sanitizing the input, allowing attackers to inject arbitrary shell commands via specially crafted branch names.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check if interactive-git-checkout is installedRun 'npm list interactive-git-checkout' in your project directory, or check package.json dependencies for this packageAffected if The package appears in your installed packages or package.json
-
Identify the installed versionRun 'npm list interactive-git-checkout --depth=0' to see the exact version number, or check the version field in package.jsonAffected if The version is 1.1.4 or lower (any version from 1.0.0 up to and including 1.1.4)
-
Locate the vulnerable source codeFind the package in node_modules and search for files containing 'child_process.exec' or similar patterns - typically in the main entry point or a checkout-related moduleAffected if The package uses child_process.exec() to run git checkout commands with branch name input without sanitization
-
Confirm the execution patternExamine the code around the exec() call - look for branch names or user input being passed directly as string arguments to exec() without validationAffected if Branch names or user input are passed directly to exec() without being sanitized or validated first
You are affected if interactive-git-checkout version 1.1.4 or earlier is installed AND the code uses child_process.exec() with unsanitized branch names.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade to the version containing commit 8dd832dd302af287a61611f4f85e157cd1c6bb41 which implements proper input validation/sanitization before passing branch names to exec(). Until upgraded, avoid using the tool with untrusted git repositories or branch names.
Version 1.1.5 or later (any version after the vulnerable 1.1.4 release)
- Check current installed version: npm list -g interactive-git-checkout
- Upgrade to the latest version: npm install -g interactive-git-checkout@latest
- Verify the version after upgrade: npm list -g interactive-git-checkout
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,088.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-59046 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-59046 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data