High, CVSS 8.9npmAmendedPublished
git-commit-info vulnerable to Command Injection
CVE-2023-26134 · GHSA-h42j-mrmp-9369
- Affected
- npm git-commit-info < 2.0.2
- Fixed in
- 2.0.2· Vendor fix available
- Issue
- Versions of the package git-commit-info before 2.0.2 are vulnerable to Command Injection such that the package-exported method gitCommitInfo() fails to sanitize its parameter commit, which later flows into a sensitive command execution API. As a result, attackers may inject arguments to the git binary.
Recommended action: Upgrade to 2.0.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.