ADVISORIES

GitHub Advisory Database

GHSA-926x-m6m5-3mmp

push-dir Enables OS Command Injection

Critical No fix available CVE-2019-10803SNYK-JS-PUSHDIR-559009

Details

push-dir through 0.4.1 allows execution of arbritary commands. Arguments provided as part of the variable opt.branch is not validated before being provided to the git command within index.js#L139. This could be abused by an attacker to inject arbitrary commands.

Affected packages

EcosystemPackageAffected versions
npmpush-dir
All versions up to and including 0.4.1

References