node-ipc package includes peacenotwar as a dependency
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 Please reference https://github.com/vuejs/vue-cli/issues/7054#issuecomment-1068677029 It appears the vue-cli has released updates to mitigate this issue.
@mjanthony Are you sure you have @vue/[email protected] installed globally? It should contain the previous [email protected], which was OK.
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 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
Can we be sure that the locked node-ipc version 9.2.1 is and will always be trustworthy in the future?
- npm registry doesn't allow to change contents of already published package versions
- checksum is stored in
yarn.lockand verified by yarn on every install
@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.