Egg: 关于event-stream后门egg处理了么?

Created on 27 Nov 2018  ·  13Comments  ·  Source: eggjs/egg

event-stream 爆出后门。

Issues

15432982893731

Most helpful comment

删掉之前的 package-lock.jsonnode_modules 然后再 npm install 一次就OK了

All 13 comments

不需要处理吧,event-stream 处理完就行了

重新 install 就行了,猪哥不锁包

只要不锁版本就没事

删掉之前的 package-lock.jsonnode_modules 然后再 npm install 一次就OK了

这个问题不影响 egg

删掉之前的 package-lock.jsonnode_modules 然后再 npm install 一次就OK了

一样的,不会升级到最新的版本。

把你主项目的package.json deps那块的json贴一下 @chaoningx

hey, please retry after reinstall dependencies and please never lock it.

$ # reinstall deps and never lock it.
$ rm -rf node_modules yarn.lock package-lock.json
$ npm i --no-package-lock

把你主项目的package.json deps那块的json贴一下 @chaoningx

"dependencies": {
"egg": "^2.14.1",
"egg-cors": "^2.1.1",
"egg-mongoose": "^3.1.1",
"egg-scripts": "^2.5.0",
"egg-validate": "^2.0.2",
"egg-view-nunjucks": "^2.2.0",
"i": "^0.3.6",
"mime": "^2.4.0",
"oceans-helper": "^1.4.0"
},

@chaoningx 按照 @atian25 的方式操作一下 应该没有问题

请问一下之后的版本会处理吗?

社区已经统一处理了,并且这个问题不影响 egg。

最后统一回复下:

  • 该问题我们已经解读源码进行安全分析,结论是:对 Egg 没有任何影响。
  • 依赖包的问题,Egg 是通过 semver 引入依赖的,而 event-stream 昨天就已经修复了。
  • 因此,只要你没有锁版本,直接按上面的执行,重新安装下依赖,就没问题了。
  • 如果依赖安装有问题,大概率是你锁了版本,或者是 CLI 使用问题,可以了解下 Node 模块依赖的相关基础知识,或者看下相关的 npm / yarn 相关文档。
Was this page helpful?
0 / 5 - 0 ratings

Related issues

zrxisme picture zrxisme  ·  44Comments

andylei18 picture andylei18  ·  35Comments

atian25 picture atian25  ·  68Comments

popomore picture popomore  ·  53Comments

occultskyrong picture occultskyrong  ·  35Comments