Nondeterministic Postrequisite Metaprotocol
Severity: critical

Command Injection



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.


No fix is currently available. Consider using an alternative package until a fix is made available.


Have content suggestions? Send them to [email protected]

Advisory timeline

  1. published

    Advisory Published
    Jan 30th, 2020
  2. reported

    Reported by mik317
    Jan 17th, 2020