Simple-git, a lightweight Node.js interface for interacting with Git repositories, saw a minor version update moving from 1.131.0 to 1.132.0. Both versions maintain the same core set of dependencies, relying on the debug package for logging and sinon and @kwsites/test-runner for development-related testing. The license remains MIT, offering developers freedom in how they use and modify the library. Steve King continues as the author.
The primary differences between the versions appear in their distribution metadata. Version 1.132.0 was released on March 12, 2020, while version 1.131.0 was released earlier, on January 26, 2020. While both versions have the same number of files (24) inside the package, the unpacked size differs slightly. Version 1.132.0 has the unpacked size of 122509 bytes while the older version has 122538 bytes. This suggests minor code optimizations or changes that reduce the overall package size.
For developers considering using simple-git, this update highlights the project's continued maintenance and refinement. While a minor version bump typically indicates bug fixes or small feature additions, the change in unpacked size suggests potential performance improvements. Users already on simple-git should consider upgrading to 1.132.0. The differences between these versions appear minimal, suggesting a smooth update process without any breaking changes. By leveraging the straightforward API provided by Simple Git, Node.js developers can easily script Git commands and automate repository-related tasks.
All the vulnerabilities related to the version 1.132.0 of the package
Command injection in simple-git
The package simple-git before 3.3.0 is vulnerable to Command Injection via argument injection. When calling the .fetch(remote, branch, handlerFn) function, both the remote and branch parameters are passed to the git fetch subcommand. By injecting some git options, it was possible to get arbitrary command execution.
Command injection in simple-git
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.
simple-git vulnerable to Remote Code Execution when enabling the ext transport protocol
The package simple-git before 3.15.0 is vulnerable to Remote Code Execution (RCE) when enabling the ext
transport protocol, which makes it exploitable via clone()
method. This vulnerability exists due to an incomplete fix of CVE-2022-24066.
Remote code execution in simple-git
Versions of the package simple-git before 3.16.0 are vulnerable to Remote Code Execution (RCE) via the clone(), pull(), push() and listRemote() methods, due to improper input sanitization. This vulnerability exists due to an incomplete fix of CVE-2022-25912.