Vulnerabilities in pkg:npm/tunnel-agent
PACKAGEGHSA-xc7v-wxcw-j472 is a MODERATE memory exposure vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Tunnel agent libraries in the npm ecosystem. The issue involves memory exposure in tunnel-agent. Remediation is available by upgrading affected packages to version 0.6.0.
pkg:npm/tunnel-agent
Vulnerability advisories affecting package pkg:npm/tunnel-agent. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xc7v-wxcw-j472 | - | MODERATE | Memory Exposure in tunnel-agent |
GHSA-xc7v-wxcw-j472 at a Glance
How to Fix GHSA-xc7v-wxcw-j472
To remediate this vulnerability, upgrade all affected Tunnel agent 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 tunnel-agent@0.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls tunnel-agent
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-xc7v-wxcw-j472, inspect your project dependencies using npm:
npm ls tunnel-agent
Analyze the terminal output to locate any version of Tunnel agent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.0), your application is affected.
Note: The npm ls tunnel-agent 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Tunnel agent, 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-xc7v-wxcw-j472 Affected Tunnel agent Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tunnel-agent
|
npm |
< 0.6.0
|
0.6.0
|
References
Frequently Asked Questions
What is GHSA-xc7v-wxcw-j472?
Which Tunnel agent versions are affected?
What version fixes GHSA-xc7v-wxcw-j472?
Is tunnel-agent affected?
What CWE is associated with GHSA-xc7v-wxcw-j472?
How can I check npm dependencies for GHSA-xc7v-wxcw-j472?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xc7v-wxcw-j472",
"modified" : "2020-08-31T18:29:19Z",
"published" : "2019-06-03T17:08:26Z",
"aliases" : [ ],
"summary" : "Memory Exposure in tunnel-agent",
"details" : "Versions of `tunnel-agent` before 0.6.0 are vulnerable to memory exposure.\n\nThis is exploitable if user supplied input is provided to the auth value and is a number.\n\nProof-of-concept:\n```js\nrequire('request')({\n method: 'GET',\n uri: 'http://www.example.com',\n tunnel: true,\n proxy:{\n protocol: 'http:',\n host:'127.0.0.1',\n port:8080,\n auth:USERSUPPLIEDINPUT // number\n }\n});\n```\n\n\n## Recommendation\n\nUpdate to version 0.6.0 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "tunnel-agent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/request/tunnel-agent/commit/9ca95ec7219daface8a6fc2674000653de0922c0"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/ChALkeR/fd6b2c445834244e7d440a043f9d2ff4"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/598"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-03T17:08:06Z",
"nvd_published_at" : null
}
}