Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a dependency of webpack, eslint-scope@3.7.2 has been hacked #7714

Closed
buhichan opened this issue Jul 12, 2018 · 5 comments
Closed

a dependency of webpack, eslint-scope@3.7.2 has been hacked #7714

buhichan opened this issue Jul 12, 2018 · 5 comments

Comments

@buhichan
Copy link

see eslint/eslint-scope#39
eslint-scope@3.7.2 is a hacked version, which sends your ~/.npmrc to the hacker.
currently webpack depends on eslint-scope@^3.7.1, it's harmful.

@selbekk
Copy link

selbekk commented Jul 12, 2018

🚨 🚑 🚨 🚑 🚨 🚑 🚨 🚑 🚨 🚑 🚨 🚑 🚨 🚑 🚨
IMPORTANT!

The hacked version has been unpublished now - but the harm may already have been done.

You - the user - might have lost your NPM auth tokens. If not you, it might have happened to your CI servers. Chances are you are affected. This is what you do:

  1. Turn on 2-factor authentication on NPM. Just do it.
  2. Revoke all of your NPM auth tokens (see how to here) and create new ones.

@sokra
Copy link
Member

sokra commented Jul 12, 2018

That's bad...

@shellscape
Copy link
Contributor

shellscape commented Jul 12, 2018

Following up on removing tokens, it's far easier to go to https://www.npmjs.com/settings/{username}/tokens and remove them there. You'll have to npm login locally and recreate any tokens for services that connect to your account.

@quisido
Copy link

quisido commented Jul 12, 2018

npmjs has invalidated all tokens to resolve this issue.
eslint-scope@3.7.3 has been published to eradicate the virus in 3.7.2.

For users who want to resolve this issue manually, just npm uninstall webpack and npm install webpack. The new installation should come with eslint-scope@3.7.3.

@montogeek
Copy link
Member

It seems issue is resolved.

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

No branches or pull requests

6 participants