Intel

AIKIDO-2026-378256

simple-git is vulnerable to Command Injection

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

81

CVE Score

High

Command Injection

Are you affected? Scan for Free

TL;DR

simple-git has an unsafe operation guard that rejects a fixed list of dangerous Git configuration keys before they reach the git child process, but the list omitted trailer.cmd and trailer.command. Git runs both keys as a shell command in git interpret-trailers, so a value set through SimpleGitOptions.config or an inline -c argument under either key reached git with no guard in place. An application that passes untrusted input into instance configuration can have an arbitrary shell command run during a git operation. The fix adds matchers for both keys to the guard's denylist.

How do I fix this?

Upgrade the simple-git 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 passes externally influenced values into SimpleGitOptions.config or an inline -c argument.

Package

Versions

3.15.0 - 3.36.0

Fixed in 4.0.0

Background info

simple-git is vulnerable to Command Injection in versions 3.15.0 - 3.36.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