cve.bz

CVE-2026-102829 steveukx git-js: OS Command Injection

9.2 criticalEPSS 0.4%Fix available

Critical (9.2) in steveukx git-js. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in @simple-git/argv-parser 2.0.1.

On this page
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.

Severity

CVSS 4.0

9.2 critical
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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 30th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-09-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
CWE-184 Incomplete List of Disallowed Inputs
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • @simple-git/argv-parser (npm): fixed in 2.0.1

Ask an AI about this CVE

Show the promptExplain CVE-2026-102829 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-102829?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-102829?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-102829 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
steveukx git-js< 2.0.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v5rq-49vh-5v5cnpm@simple-git/argv-parser<2.0.12.0.1

Red Hat

Red Hat rates this Important.

Red Hat's statement

An Important severity flaw was found in simple-git, which is used by the grafana component in Red Hat Enterprise Linux 8. The @simple-git/argv-parser package used by simple-git omits the VISUAL environment variable from its unsafe-editor detection: VISUAL is missing from GitEnvKeys, so the parser drops the value before it can be classified as allowUnsafeEditor. If a consuming application forwards attacker-influenced environment variables into the environment passed to Git child processes, an attacker can supply a VISUAL value that Git uses to launch an attacker-selected editor during operations that open an editor, such as commit amendment or interactive rebase, resulting in arbitrary code execution with the privileges of the Node.js process. Exploitation requires several preconditions: the consuming application must forward attacker-influenced environment values to Git, the Git operation must open an editor, no higher-priority editor setting (GIT_EDITOR, core.editor, or EDITOR) may override VISUAL, and Git's terminal prerequisites must be met. For this reason Red Hat rates this flaw Important (CVSS 8.1, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H), while the upstream CVE record assigns a Critical score (CVSS 9.2) that does not account for the high attack complexity of the required application data flow. Among Red Hat products, grafana in Red Hat Enterprise Linux 8 (the 8.4 and 8.6 update streams) is affected and a fix is being pursued; grafana and grafana-pcp in Red Hat Enterprise Linux 8.10, 9, and 10 and in Red Hat In-Vehicle OS 2 are not affected because the vulnerable component is not present. Affectedness of other Red Hat products is still under assessment.

Red Hat's mitigation

Applications using simple-git can mitigate this issue by ensuring that untrusted or attacker-influenced environment values are not forwarded into the environment passed to Git child processes (for example, via simple-git's .env()), and by explicitly setting a trusted editor using GIT_EDITOR or the Git core.editor configuration, which take precedence over VISUAL. The unsafe-editor guard already blocks EDITOR, GIT_EDITOR, and GIT_SEQUENCE_EDITOR values unless allowUnsafeEditor is explicitly enabled. The upstream project fixed this issue in @simple-git/argv-parser 2.0.1; Red Hat will deliver fixes for affected products through their update streams as they become available.

ProductPackageStateAdvisory
Red Hat Build of Keycloakkeycloak-operator.redhat-00001.zipNot affected
Red Hat Build of Keycloakkeycloak-operator.redhat-00003.zipNot affected
Red Hat Build of Keycloakrhbk-quarkus-dist.zipNot affected
Red Hat Enterprise Linux 10grafanaNot affected
Red Hat Enterprise Linux 10grafana-pcpNot affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 8grafana-pcpNot affected
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Enterprise Linux 9grafana-pcpNot affected
Red Hat JBoss Enterprise Application Platform 8jboss-eap.1-runtime-maven-repository.zipNot affected
Red Hat JBoss Enterprise Application Platform 8jboss-eap-runtime-maven-repository.zipNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packjboss-eap.1-runtime-maven-repository.zipNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packjboss-eap-runtime-maven-repository.zipNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-102829.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters Likelihood: Medium · Severity: Medium
  • CAPEC-71 Using Unicode Encoding to Bypass Validation Logic Likelihood: Medium · Severity: High
  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-120 Double Encoding Likelihood: Low · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-184.

References

Check your stackJSON