High, CVSS 7.2npmAmendedPublished
Command Injection in git-tags-remote
GHSA-gm9x-q798-hmr4
- Affected
- npm git-tags-remote < 1.0.4
- Fixed in
- 1.0.4· Vendor fix available
- Issue
- All versions of git-tags-remote are vulnerable to Command Injection. The package fails to sanitize the repository input and passes it directly to an exec call on the get function . This may allow attackers to execute arbitrary code in the system if the repo value passed to the function is user-controlled. The following proof-of-concept creates a file in /tmp:
Recommended action: Upgrade to 1.0.4 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.