Vulnerabilities in pkg:npm/http-proxy-agent
PACKAGEGHSA-8w57-jfpm-945m is a HIGH denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Http proxy agent libraries in the npm ecosystem. The issue involves denial of service in http-proxy-agent. Remediation is available by upgrading affected packages to version 2.1.0.
pkg:npm/http-proxy-agent
Vulnerability advisories affecting package pkg:npm/http-proxy-agent. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8w57-jfpm-945m | - | HIGH | Denial of Service in http-proxy-agent |
| GHSA-86wf-436m-h424 | CVE-2019-10196 | MODERATE | Resource Exhaustion Denial of Service in http-proxy-agent |
GHSA-8w57-jfpm-945m at a Glance
How to Fix GHSA-8w57-jfpm-945m
To remediate this vulnerability, upgrade all affected Http proxy 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 http-proxy-agent@2.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls http-proxy-agent
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-8w57-jfpm-945m, inspect your project dependencies using npm:
npm ls http-proxy-agent
Analyze the terminal output to locate any version of Http proxy agent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.0), your application is affected.
Note: The npm ls http-proxy-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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Http proxy 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-8w57-jfpm-945m Affected Http proxy agent Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
http-proxy-agent
|
npm |
< 2.1.0
|
2.1.0
|
References
Frequently Asked Questions
What is GHSA-8w57-jfpm-945m?
Which Http proxy agent versions are affected?
What version fixes GHSA-8w57-jfpm-945m?
Is http-proxy-agent affected?
What CWE is associated with GHSA-8w57-jfpm-945m?
How can I check npm dependencies for GHSA-8w57-jfpm-945m?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8w57-jfpm-945m",
"modified" : "2023-04-11T00:26:58Z",
"published" : "2019-06-11T16:16:07Z",
"aliases" : [ ],
"summary" : "Denial of Service in http-proxy-agent",
"details" : "Versions of `http-proxy-agent` before 2.1.0 are vulnerable to denial of service and uninitialized memory leak when unsanitized options are passed to `Buffer`. An attacker may leverage these unsanitized options to consume system resources.\n\n\n## Recommendation\n\nUpdate to version 2.1.0 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "http-proxy-agent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://hackerone.com/reports/321631"
}, {
"type" : "WEB",
"url" : "https://github.com/TooTallNate/node-http-proxy-agent/blob/2.0.0/index.js#L80"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/607"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-11T16:11:38Z",
"nvd_published_at" : null
}
}