# GHSA-hxxf-q3w9-4xgw: Malicious Package in eslint-scope

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2018-07-12T19:52:02.000Z
- Modified: 2021-09-14T17:35:41.000Z
- Weaknesses: CWE-506

## Description

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

(As written by GitHub Advisory Database.)

## Affected

- eslint-scope (npm): from 3.7.2 before 3.7.3
- eslint-config-eslint (npm): from 5.0.2 before 6.0.0

## References

- <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)

## Sources

- GitHub Advisory Database: [GHSA-hxxf-q3w9-4xgw](https://github.com/advisories/GHSA-hxxf-q3w9-4xgw), CC-BY-4.0, modified 2021-09-14

---

Page: https://cve.day/GHSA-hxxf-q3w9-4xgw · Whole record: https://cve.day/GHSA-hxxf-q3w9-4xgw.json · Rebuilt by cve.day 2026-11-25T22:56:45.687Z
