CVE-2026-102829: simple-git environment variable editor injection in argv-parser

CVE-2026-102829 · Severity: critical · CVSS 4 · Published 2026-09-29

simple-git is a Node.js library that allows JavaScript applications to run Git commands. A flaw in the argv-parser dependency fails to properly validate the VISUAL environment variable, allowing an attacker who controls environment variables to execute an arbitrary editor program during Git operations like commits or rebases. The editor runs with the privileges of the Node.js process, potentially leading to code execution or data manipulation.

Technologies: Steveukx Simple-Git. Vendors: npm, Steveukx.

Quick answers

Is CVE-2026-102829 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-102829 being exploited in the wild.
How severe is CVE-2026-102829?
Critical severity, with a CVSS score of 4, published 29 September 2026.
Which products and versions are affected?
@simple-git/argv-parser (npm) < 2.0.1, SEMVER:introduced=0,fixed=2.0.1; argv-parser (npm) before 2.0.1; Steveukx Simple-Git affected versions prior to fix.
Is there a fix for CVE-2026-102829?
Yes. @simple-git/argv-parser (npm): upgrade to 2.0.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-102829 attacked?
It is attacked with local access.
Am I affected by CVE-2026-102829?
Check whether you run @simple-git/argv-parser (npm), argv-parser (npm) or Steveukx Simple-Git at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • @simple-git/argv-parser (npm): upgrade to 2.0.1 or later
    npm install @simple-git/argv-parser@2.0.1

Technical details

The vulnerability exists in argv-parser prior to 2.0.1, where the parseEnv function omits the VISUAL environment variable from GitEnvKeys. This causes prepareEnv to drop the VISUAL value before vulnerabilityCheck can classify it as an unsafe editor setting. An application that forwards attacker-controlled environment variables to simple-git's Git operations can be exploited when VISUAL is set to a malicious editor path and Git's terminal prerequisites are met. The fix adds VISUAL to the tracked environment variables list.

Affected products

  • steveukx simple-git affected versions prior to fix
  • npm argv-parser before 2.0.1

Identifiers

  • CVE-2026-102829
  • GHSA-v5rq-49vh-5v5c

Timeline

  • 2026-09-29: disclosed: CVE-2026-102829 published
  • 2026-09-26: patched: argv-parser 2.0.1 released with fix to include VISUAL in tracked environment variables

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.