Intel

AIKIDO-2026-455143

@simple-git/argv-parser is vulnerable to Command Injection

CVE-2026-102829Published Oct 5, 2026
October 5, 2026

81

CVE Score

High

Command Injection

Are you affected? Scan for Free

TL;DR

@simple-git/argv-parser's parseEnv only puts EDITOR, GIT_EDITOR, and GIT_SEQUENCE_EDITOR in the allowUnsafeEditor category, and prepareEnv drops any environment entry whose lowercased name is not a known key or does not start with git. VISUAL is dropped before the unsafe editor check runs, even though git falls back to VISUAL when picking an editor. parseEnv({ VISUAL: '/tmp/evileditor' }) reports no vulnerability while an interactive git operation runs that binary. The fix adds visual to GitEnvKeys under allowUnsafeEditor.

How do I fix this?

Upgrade the @simple-git/argv-parser library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application allows untrusted values into the VISUAL environment variable passed to git operations.

Versions

0.0.1 - 2.0.0

Fixed in 2.0.1

Background info

@simple-git/argv-parser is vulnerable to Command Injection in versions 0.0.1 - 2.0.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea