{"id":"GHSA-49mg-94fc-2fx6","summary":"Command Injection in npm-git-publish","details":"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.","modified":"2020-08-31T19:00:00Z","published":"2020-09-04T17:32:49Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2020-08-31T19:00:00Z","nvd_published_at":null,"cwe_ids":["CWE-77"],"severity":"CRITICAL"},"references":[{"type":"WEB","url":"https://hackerone.com/reports/730121"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1458"}],"affected":[{"package":{"name":"npm-git-publish","ecosystem":"npm","purl":"pkg:npm/npm-git-publish"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-49mg-94fc-2fx6/GHSA-49mg-94fc-2fx6.json"}}],"schema_version":"1.9.0"}