{"id":"GHSA-49mg-94fc-2fx6","aliases":[],"status":"published","title":"Command Injection in npm-git-publish","description":"All versions of `npm-git-publish` are vulnerable to Command Injection. The package fails to sanitize input and passes it directly to an `execSync` call, which may allow attackers to execute arbitrary code in the system. The `publish` function is vulnerable through the `gitRemoteUrl` variable.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-77"],"published":"2020-09-04T17:32:49Z","modified":"2023-01-09T05:03:52Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"npm-git-publish","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"npm-git-publish","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}]}],"references":[{"url":"https://hackerone.com/reports/730121","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1458","tags":["web"]},{"url":"https://github.com/advisories/GHSA-49mg-94fc-2fx6"}],"sources":{"ghsa":[{"id":"GHSA-49mg-94fc-2fx6","title":"Command Injection in npm-git-publish","description":"All versions of `npm-git-publish` are vulnerable to Command Injection. The package fails to sanitize input and passes it directly to an `execSync` call, which may allow attackers to execute arbitrary code in the system. The `publish` function is vulnerable through the `gitRemoteUrl` variable.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2020-09-04T17:32:49Z","modified":"2023-01-09T05:03:52Z","cwes":["CWE-77"],"updated_at":"2026-11-02T14:36:06.884904Z"}],"osv":[{"id":"GHSA-49mg-94fc-2fx6","title":"Command Injection in npm-git-publish","description":"All versions of `npm-git-publish` are vulnerable to Command Injection. The package fails to sanitize input and passes it directly to an `execSync` call, which may allow attackers to execute arbitrary code in the system. The `publish` function is vulnerable through the `gitRemoteUrl` variable.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2020-09-04T17:32:49Z","modified":"2020-08-31T19:00:00Z","cwes":["CWE-77"],"updated_at":"2026-11-02T15:46:36.782754Z"}]}}
