Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

npm audit reports critical vulnerability when @openzeppelin/cli is installed #1550

Open
shark0der opened this issue Jun 5, 2020 · 3 comments

Comments

@shark0der
Copy link

shark0der commented Jun 5, 2020

image

I've skimmed through the source, I wouldn't say you're affected but you'd probably want to remove the dependency and implement those functions yourself

Advisory: https://npmjs.com/advisories/1507

Usages

  1. await npm.install([nameAndVersion], { save: true, cwd: process.cwd() });
  2. const packagesList = await npm.list(path);

Looking at the dependency itself, I'd suggest implementing exec commands in your sdk and getting rid of the dep as it doesn't seem to be actively maintained.

Dep source: https://github.com/Manak/npm-programmatic/blob/master/index.js

Initially reported on Telegram: https://t.me/zeppelinos/12443

@abcoathup
Copy link
Contributor

Hi @shark0der!

Thanks so much for reporting it! The project owner will review and triage this issue during the next week.

@frangio
Copy link
Contributor

frangio commented Jun 8, 2020

Thanks for reporting @shark0der. I looked into this and I don't think it's a vulnerability for OpenZeppelin CLI users, because the places where there could be command injection in the user's machine are controlled by the user.

@shark0der
Copy link
Author

Hi @frangio! Indeed, like I said before, it doesn't seem like there's an impact (unless of course there are specific scenarios for some users), however, having npm audit report a critical vulnerability after the installation doesn't look pretty and might scare some users. That being said, fixing this doesn't need a very high priority but it would be nice to have it fixed sooner than later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants