Disclosure summary
simple-git, an interface for running git commands in any node.js application, enables applications to execute Git operations from JavaScript. Prior to 2.0.1 of the argv-parser package, parseEnv omits VISUAL from GitEnvKeys, so prepareEnv drops the value before vulnerabilityCheck can classify it as allowUnsafeEditor. A consuming application that forwards attacker-influenced environment values can therefore allow Git to invoke an attacker-selected editor during operations such as commit amendment or interactive rebase when no higher-priority editor setting overrides VISUAL and Git's terminal prerequisites are met. The executable runs with the privileges of the Node.js process. This issue is fixed in argv-parser 2.0.1.
Source-reported weakness categories
CWE-78, CWE-184
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
GitHub Reviewed Security Advisories · GHSA-v5rq-49vh-5v5c
Open original source · Updated Oct 05, 2026
simple-git: `VISUAL` editor environment variable is omitted from unsafe editor detection
Source severity: CRITICAL / 9.2
| Ecosystem | Package | Affected range | First patched |
|---|---|---|---|
| npm | @simple-git/argv-parser | < 2.0.1 | 2.0.1 |
NIST National Vulnerability Database · NVD-CVE-2026-102829
Open original source · Updated Sep 30, 2026
Only CPE matches marked vulnerable=true are indexed. AND/OR platform conditions must be checked in the original NVD record.
Original records & references
PUBLISHED 2026-09-29T15:17:25-04:00
MODIFIED 2026-09-30T16:17:24-04:00
INGESTED 2026-10-06T11:43:05-04:00