ADVISORIES

GitHub Advisory Database

GHSA-h42j-mrmp-9369

git-commit-info vulnerable to Command Injection

Details

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.

Affected packages

EcosystemPackageAffected versions
npmgit-commit-info
All versions before 2.0.2 (fixed in 2.0.2)

References