Packages / simple-git / Security

HighVulnerabilityGHSA-28xr-mwxg-3qc8CVE-2022-24066Published 2 Apr 2022

Command injection in simple-git

Your version

Affected releases · simple-git

  • 3.x3.0.1 – 3.4.0Fixed in 3.5.0
  • 2.x and older0.0.1 – 2.48.0No fix, no longer updated

On 3.x, the newest line:

npm install simple-git@3.5.0
Every release on a timeline
4.x
  1. Not affected

    4.0.0 – 4.1.0

    4 releases, latest

3.x
  1. Affected

    3.0.1 – 3.4.0

    10 releases

  2. Fixed

    3.5.0 – 3.36.0

    42 releases

2.x
  1. Affected

    2.0.0 – 2.48.0

    63 releases

1.x
  1. Affected

    1.0.0 – 1.132.0

    139 releases

0.x
  1. Affected

    0.0.1 – 0.17.0

    20 releases

278 stable releases of simple-git, oldest to newest, one row per major.

What happens

simple-git (maintained as git-js named repository on GitHub) is a light weight interface for running git commands in any node.js application.The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of CVE-2022-24433 which only patches against the git fetch attack vector. A similar use of the --upload-pack feature of git is also supported for git clone, which the prior fix didn't cover. A fix was released in simple-git@3.5.0.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.