← Back to context

Comment by neilv

1 year ago

Do these npx business cards run arbitrary code on your computer?

npx

Run a command from a local or remote npm package

Description

This command allows you to run an arbitrary command from an npm package (either one installed locally, or fetched remotely), in a similar context as running it via npm run.

  • Yes, then is a "command from an npm package" arbitrary code?

    And what is this "similar context as running it via npm run"?

    Would it be better to answer the question directly?

Yeah, this seems like a very smart but inherently flawed idea.

  • Yes I agree! OSS package management ecosystems are a great idea, but allowing submissions without any review or vetting is just asking for supply chain attacks.