ggit is vulnerable to Command Injection via the fetchTags(branch) API
Moderate severity
GitHub Reviewed
Published
Oct 8, 2024
to the GitHub Advisory Database
•
Updated Oct 8, 2024
Description
Published by the National Vulnerability Database
Oct 8, 2024
Published to the GitHub Advisory Database
Oct 8, 2024
Reviewed
Oct 8, 2024
Last updated
Oct 8, 2024
All versions of the package ggit are vulnerable to Command Injection via the fetchTags(branch) API, which allows user input to specify the branch to be fetched and then concatenates this string along with a git command which is then passed to the unsafe exec() Node.js child process API.
References