Malicious Package in eslint-scope

eslint-scope Updated 02 Oct 2025

Summary

12/07/2018
CRITICAL
Yes i
Critical
9.1

GHSA-hxxf-q3w9-4xgw: Malicious Package in eslint-scope. Affects eslint-scope versions >= 3.7.2, < 3.7.3. Fixed in 3.7.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package eslint-scope is an open-source library used for static analysis of JavaScript code. It provides scope analysis for ESLint, a popular JavaScript linting tool. The library is widely used in the JavaScript ecosystem and is a critical component for ensuring code quality and adherence to coding standards. However, version 3.7.2 of eslint-scope was published without authorization and contained malicious code.

Vulnerability Detail

The unauthorized version 3.7.2 of eslint-scope contained code that would read the user's .npmrc file and send any found authentication tokens to two remote servers. This vulnerability posed a significant risk to the security and privacy of users who had installed this version of the package. The malicious code could potentially lead to unauthorized access to sensitive information and compromise the security of the affected systems.

How To Fix

Minimum fixed version

3.7.3

This is the first release that contains the fix.

npm install eslint-scope@3.7.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The malicious package in eslint-scope version 3.7.2 posed a critical security risk by reading the user's .npmrc file and sending authentication tokens to remote servers. To mitigate this vulnerability, it is crucial to update to version 3.7.3 or later and revoke all npm tokens. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for eslint-scope →

Share this vulnerability

FAQ

eslint-scope is an open-source library used for static analysis of JavaScript code. It provides scope analysis for ESLint, a popular JavaScript linting tool.

The malicious package, version 3.7.2 of eslint-scope, could read the user's .npmrc file and send authentication tokens to remote servers. This could potentially lead to unauthorized access to sensitive information and compromise the security of affected systems.

To fix the vulnerability, update eslint-scope to version 3.7.3 or later. Additionally, it is recommended to revoke all npm tokens as a precautionary measure.

No specific workarounds are mentioned for this vulnerability. Updating to a fixed version of eslint-scope is the recommended solution.

How To Fix

Minimum fixed version

3.7.3

This is the first release that contains the fix.

npm install eslint-scope@3.7.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback