Live threats

All CVEs / steveukx

CVE-2026-102829steveukx git-js

Arbitrary code execution via VISUAL environment variable in git-js

Critical 9.2 No auth needed

Priority
70
CVSS 4.0
9.2
EPSS
—
Auth required
No
Published
Sep 29, 2026
Updated
Sep 30, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78, CWE-184
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

The simple-git library (git-js) prior to argv-parser version 2.0.1 omits the VISUAL environment variable from security validation, allowing an attacker to execute an arbitrary editor during Git operations such as commit amendments or interactive rebase. The editor runs with the privileges of the Node.js process.

Show the original NVD text

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 text, unmodified. NVD.

What to do

Patch available · fixed versions: 2.0.1

Update @simple-git/argv-parser to version 2.0.1 or later.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for git-js.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @simple-git/argv-parser < 2.0.1 2.0.1 npm install @simple-git/argv-parser@2.0.1

Per OSV / GitHub Advisories (GHSA-v5rq-49vh-5v5c). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.