{"id":"GHSA-49mg-94fc-2fx6","aliases":["GHSA-49mg-94fc-2fx6"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection in npm-git-publish","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-09-04T17:32:49.000Z","modified":"2020-08-31T19:00:00.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0","status":"affected"}],"ecosystem":"npm","package":"npm-git-publish","purl":"pkg:npm/npm-git-publish","source":"ghsa"}],"references":[{"url":"https://hackerone.com/reports/730121","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1458","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-49mg-94fc-2fx6","url":"https://github.com/advisories/GHSA-49mg-94fc-2fx6","licence":"CC-BY-4.0","modified":"2020-08-31T19:00:00.000Z"}],"updatedAt":"2026-11-25T22:56:43.969Z"}