Vulnerabilities in pkg:npm/npmconf
PACKAGEGHSA-57cf-349j-352g is a MODERATE out-of-bounds read vulnerability (CWE-125: Out-of-bounds Read) affecting Npmconf libraries in the npm ecosystem. The issue involves out-of-bounds read in npmconf. Remediation is available by upgrading affected packages to version 2.1.3.
pkg:npm/npmconf
Vulnerability advisories affecting package pkg:npm/npmconf. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-57cf-349j-352g | - | MODERATE | Out-of-bounds Read in npmconf |
GHSA-57cf-349j-352g at a Glance
How to Fix GHSA-57cf-349j-352g
To remediate this vulnerability, upgrade all affected Npmconf 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 npmconf@2.1.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls npmconf
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-57cf-349j-352g, inspect your project dependencies using npm:
npm ls npmconf
Analyze the terminal output to locate any version of Npmconf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.3), your application is affected.
Note: The npm ls npmconf 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-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Npmconf, 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-57cf-349j-352g Affected Npmconf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
npmconf
|
npm |
< 2.1.3
|
2.1.3
|
References
Frequently Asked Questions
What is GHSA-57cf-349j-352g?
Which Npmconf versions are affected?
What version fixes GHSA-57cf-349j-352g?
Is npmconf affected?
What CWE is associated with GHSA-57cf-349j-352g?
How can I check npm dependencies for GHSA-57cf-349j-352g?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-57cf-349j-352g",
"modified" : "2020-08-31T18:31:27Z",
"published" : "2019-06-12T16:37:00Z",
"aliases" : [ ],
"summary" : "Out-of-bounds Read in npmconf",
"details" : "Versions of `npmconf` before 2.1.3 allocate and write to disk uninitialized memory contents when a typed number is passed as input on Node.js 4.x.\n\n\n## Recommendation\n\nUpdate to version 2.1.3 or later. Consider switching to another config storage mechanism, as npmconf is deprecated and should not be used.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "npmconf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://hackerone.com/reports/320269"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/653"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-125" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-12T16:35:03Z",
"nvd_published_at" : null
}
}