GHSA-hxxf-q3w9-4xgw: Eslint scope Malicious Package Vulnerability
CRITICALGHSA-hxxf-q3w9-4xgw is a CRITICAL (CVSS 9.1) malicious package vulnerability (CWE-506: Embedded Malicious Code) affecting Eslint scope libraries in the npm ecosystem. The issue involves malicious package in eslint-scope. Remediation is available by upgrading affected packages to version 3.7.3, 6.0.0.
GHSA-hxxf-q3w9-4xgw at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix GHSA-hxxf-q3w9-4xgw
To remediate this vulnerability, upgrade all affected Eslint scope dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install eslint-scope@3.7.3
npm install eslint-config-eslint@6.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls eslint-scope
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-hxxf-q3w9-4xgw, inspect your project dependencies using npm:
npm ls eslint-scope
Analyze the terminal output to locate any version of Eslint scope in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.7.3), your application is affected.
Note: The npm ls eslint-scope command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In Eslint scope, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-hxxf-q3w9-4xgw Affected Eslint scope Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
eslint-scope
|
npm |
≥ 3.7.2
< 3.7.3
All 1 versions
3.7.2
|
3.7.3
|
|
eslint-config-eslint
|
npm |
≥ 5.0.2
< 6.0.0
All 1 versions
5.0.2
|
6.0.0
|
References
Frequently Asked Questions
What is GHSA-hxxf-q3w9-4xgw?
Which Eslint scope versions are affected?
What version fixes GHSA-hxxf-q3w9-4xgw?
Is eslint-scope affected?
Is eslint-config-eslint affected?
What is the CVSS score of GHSA-hxxf-q3w9-4xgw?
What CWE is associated with GHSA-hxxf-q3w9-4xgw?
How can I check npm dependencies for GHSA-hxxf-q3w9-4xgw?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hxxf-q3w9-4xgw",
"modified" : "2021-09-14T17:35:41Z",
"published" : "2018-07-12T19:52:02Z",
"aliases" : [ ],
"summary" : "Malicious Package in eslint-scope",
"details" : "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.\n\n\n## Recommendation\n\nThe 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",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "eslint-scope"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.7.2"
}, {
"fixed" : "3.7.3"
} ]
} ],
"versions" : [ "3.7.2" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "eslint-config-eslint"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.2"
}, {
"fixed" : "6.0.0"
} ]
} ],
"versions" : [ "5.0.2" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/eslint/eslint-scope/issues/39"
}, {
"type" : "WEB",
"url" : "https://eslint.org/blog/2018/07/postmortem-for-malicious-package-publishes"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-hxxf-q3w9-4xgw"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/eslint/eslint-scope"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-ESLINTSCOPE-11120"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/673"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-506" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:41:33Z",
"nvd_published_at" : null
}
}