CRITICAL9.1
GHSA-hxxf-q3w9-4xgw
Malicious Package in eslint-scope
Quick fix
GHSA-hxxf-q3w9-4xgw — eslint-scope: upgrade to the fixed version with the command below.
npm install eslint-scope@3.7.3Details
Version 3.7.2 of `eslint-scope` was published without authorization and was found to contain malicious code. This code would read the users `.npmrc` file and send any found authentication tokens to 2 remote servers.
## Recommendation
The best course of action if you found this package installed in your environment is to revoke all your npm tokens. You can find instructions on how to do that here. https://docs.npmjs.com/getting-started/working_with_tokens#how-to-revoke-tokens
Are you affected?
Enter the version of the package you're using.
Affected packages
npm/eslint-config-eslint
Introduced in:
5.0.2Fixed in: 6.0.0Fix
npm install eslint-config-eslint@6.0.0References
- https://github.com/eslint/eslint-scope/issues/39[WEB]
- https://eslint.org/blog/2018/07/postmortem-for-malicious-package-publishes[WEB]
- https://github.com/advisories/GHSA-hxxf-q3w9-4xgw[ADVISORY]
- https://github.com/eslint/eslint-scope[PACKAGE]
- https://snyk.io/vuln/SNYK-JS-ESLINTSCOPE-11120[WEB]
- https://www.npmjs.com/advisories/673[WEB]