GHSA-jxf5-7x3j-8j9m: Load from cwd or npm Malicious Package Vulnerability
CRITICALGHSA-jxf5-7x3j-8j9m is a CRITICAL (CVSS 9.8) malicious package vulnerability (CWE-506: Embedded Malicious Code) affecting Load from cwd or npm libraries in the npm ecosystem. The issue involves malicious package in load-from-cwd-or-npm. Remediation is available by upgrading affected packages to version 3.0.4.
GHSA-jxf5-7x3j-8j9m at a Glance
Security Impact
CVSS: 9.8
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:H).
How to Fix GHSA-jxf5-7x3j-8j9m
To remediate this vulnerability, upgrade all affected Load from cwd or npm 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 load-from-cwd-or-npm@3.0.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls load-from-cwd-or-npm
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-jxf5-7x3j-8j9m, inspect your project dependencies using npm:
npm ls load-from-cwd-or-npm
Analyze the terminal output to locate any version of Load from cwd or npm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.4), your application is affected.
Note: The npm ls load-from-cwd-or-npm 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 Load from cwd or npm, 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-jxf5-7x3j-8j9m Affected Load from cwd or npm Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
load-from-cwd-or-npm
|
npm |
≥ 3.0.2
< 3.0.4
All 1 versions
3.0.2
|
3.0.4
|
References
Frequently Asked Questions
What is GHSA-jxf5-7x3j-8j9m?
Which Load from cwd or npm versions are affected?
What version fixes GHSA-jxf5-7x3j-8j9m?
Is load-from-cwd-or-npm affected?
What is the CVSS score of GHSA-jxf5-7x3j-8j9m?
What CWE is associated with GHSA-jxf5-7x3j-8j9m?
How can I check npm dependencies for GHSA-jxf5-7x3j-8j9m?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jxf5-7x3j-8j9m",
"modified" : "2021-09-30T20:05:11Z",
"published" : "2020-09-03T18:19:14Z",
"aliases" : [ ],
"summary" : "Malicious Package in load-from-cwd-or-npm",
"details" : "Version 3.0.2 of `load-from-cwd-or-npm` contains malicious code. The malware breaks functionality of the `purescript-installer` package by injecting targeted code.\n\n\n## Recommendation\n\nUpgrade to version 3.0.4 or later. There is no indication of further compromise.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "load-from-cwd-or-npm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.2"
}, {
"fixed" : "3.0.4"
} ]
} ],
"versions" : [ "3.0.2" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1082"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-506" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:46:39Z",
"nvd_published_at" : null
}
}