{"id":"CVE-2026-102829","state":"PUBLISHED","title":"simple-git: `VISUAL` editor environment variable is omitted from unsafe editor detection","description":"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.","publishedAt":"2026-09-29T18:46:58.476Z","updatedAt":"2026-09-30T19:28:41.888Z","severity":{"score":9.2,"label":"Critical","version":"4.0","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","source":"GitHub_M"},"assigner":"GitHub_M","products":["steveukx git-js"],"affected":[{"vendor":"steveukx","product":"git-js","versions":[{"version":"< 2.0.1","status":"affected"}]}],"references":["https://github.com/steveukx/git-js/security/advisories/GHSA-v5rq-49vh-5v5c","https://github.com/steveukx/git-js/pull/1201","https://github.com/steveukx/git-js/commit/68874c239f0c7a87f4a68c3d2c4a0d7c75bb27f4","https://github.com/steveukx/git-js/releases/tag/@simple-git/argv-parser@2.0.1"],"weaknesses":["CWE-78","CWE-184"],"ingestedAt":"2026-10-29T20:10:13.529Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/102xxx/CVE-2026-102829.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-102829","state":"PUBLISHED","datePublished":"2026-09-29T18:46:58.476Z","dateUpdated":"2026-09-30T19:28:41.888Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-09-29T17:25:25.265Z"},"containers":{"cna":{"title":"simple-git: `VISUAL` editor environment variable is omitted from unsafe editor detection","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"steveukx","product":"git-js","versions":[{"version":"< 2.0.1","status":"affected"}]}],"references":[{"url":"https://github.com/steveukx/git-js/security/advisories/GHSA-v5rq-49vh-5v5c","name":"https://github.com/steveukx/git-js/security/advisories/GHSA-v5rq-49vh-5v5c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/steveukx/git-js/pull/1201","name":"https://github.com/steveukx/git-js/pull/1201","tags":["x_refsource_MISC"]},{"url":"https://github.com/steveukx/git-js/commit/68874c239f0c7a87f4a68c3d2c4a0d7c75bb27f4","name":"https://github.com/steveukx/git-js/commit/68874c239f0c7a87f4a68c3d2c4a0d7c75bb27f4","tags":["x_refsource_MISC"]},{"url":"https://github.com/steveukx/git-js/releases/tag/@simple-git/argv-parser@2.0.1","name":"https://github.com/steveukx/git-js/releases/tag/@simple-git/argv-parser@2.0.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":9.2,"baseSeverity":"CRITICAL","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","lang":"en","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-184","lang":"en","description":"CWE-184: Incomplete List of Disallowed Inputs","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-29T18:46:58.476Z"},"source":{"advisory":"GHSA-v5rq-49vh-5v5c","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-30T19:28:19.341270Z","id":"CVE-2026-102829","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-30T19:28:41.888Z"}}]}}}