vue-cli icon indicating copy to clipboard operation
vue-cli copied to clipboard

node-ipc package includes peacenotwar as a dependency

Open mjanthony opened this issue 4 years ago • 6 comments

Version

5.0.3

Environment info

N/A

Steps to reproduce

Starting a new project from Vue CLI. When the project is run, the file "WITH-LOVE-FROM-AMERICA.txt" appears on the desktop.

What is expected?

No nasty surprises.

What is actually happening?

"WITH-LOVE-FROM-AMERICA.txt" appears on the desktop.


There are a lot of complaints under the node-ipc issue page: https://github.com/RIAEvangelist/node-ipc/issues

I discovered this by finding "WITH-LOVE-FROM-AMERICA.txt" on my desktop.

mjanthony avatar Mar 16 '22 11:03 mjanthony

@mjanthony Please reference https://github.com/vuejs/vue-cli/issues/7054#issuecomment-1068677029 It appears the vue-cli has released updates to mitigate this issue.

MidSpike avatar Mar 16 '22 16:03 MidSpike

@mjanthony Are you sure you have @vue/[email protected] installed globally? It should contain the previous [email protected], which was OK.

lorand-horvath avatar Mar 16 '22 17:03 lorand-horvath

How can vue-cli be trusted after this? I wouldn't touch any package downstream to node-ipc with a ten foot pole! As responsible developers you should replace node-ipc with an alternative package. It is only a matter of time before a country does something that the dev does not agree with, and decides to purge all user files from arbitrary countries.

Either vue.js changes this dependency, or I change out vue everywhere.

EJTH avatar Mar 18 '22 09:03 EJTH

@EJTH I am having second thoughts as well regarding node-ipc and how much can we trust the locked version 9.2.1 used in the latest @vue/cli version. Of course there's always Vite as an alternative to Vue CLI, which is not node-ipc dependent, so there's that.

Would you mind chiming in on my question https://github.com/vuejs/vue-cli/issues/7051#issuecomment-1072246151

Can we be sure that the locked node-ipc version 9.2.1 is and will always be trustworthy in the future? Is it possible for the node-ipc author to modify that particular version with different code and replace the 9.2.1 package on npm? Can we trust that 9.2.1 will always remain unaltered on npm? I guess there's an obvious response/explanation to this, but I'm still willing to hear it.

lorand-horvath avatar Mar 18 '22 09:03 lorand-horvath

@lorand-horvath

Can we be sure that the locked node-ipc version 9.2.1 is and will always be trustworthy in the future?

  1. npm registry doesn't allow to change contents of already published package versions
  2. checksum is stored in yarn.lock and verified by yarn on every install

rlidwka avatar Mar 19 '22 18:03 rlidwka

@rlidwka Well, node-ipc 9.2.1 itself is fine, but we cannot say the same about its transient dependencies, please see https://github.com/vuejs/vue-cli/issues/7051#issuecomment-1072279354 and further comments there.

lorand-horvath avatar Mar 21 '22 12:03 lorand-horvath