GHSA-6x33-pw7p-hmpq: Http proxy Denial of Service Vulnerability
HIGHGHSA-6x33-pw7p-hmpq is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-693: Protection Mechanism Failure) affecting Http proxy libraries in the npm ecosystem. The issue involves denial of service in http-proxy. Remediation is available by upgrading affected packages to version 1.18.1.
GHSA-6x33-pw7p-hmpq at a Glance
Security Impact
CVSS: 7.5
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:N/I:N/A:H).
How to Fix GHSA-6x33-pw7p-hmpq
To remediate this vulnerability, upgrade all affected Http proxy 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@1.18.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls http-proxy
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-6x33-pw7p-hmpq, inspect your project dependencies using npm:
npm ls http-proxy
Analyze the terminal output to locate any version of Http proxy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.18.1), your application is affected.
Note: The npm ls http-proxy 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-693: Protection Mechanism Failure, where the product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. In Http proxy, 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-6x33-pw7p-hmpq Affected Http proxy Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
http-proxy
|
npm |
< 1.18.1
|
1.18.1
|
References
Frequently Asked Questions
What is GHSA-6x33-pw7p-hmpq?
Which Http proxy versions are affected?
What version fixes GHSA-6x33-pw7p-hmpq?
Is http-proxy affected?
What is the CVSS score of GHSA-6x33-pw7p-hmpq?
What CWE is associated with GHSA-6x33-pw7p-hmpq?
How can I check npm dependencies for GHSA-6x33-pw7p-hmpq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6x33-pw7p-hmpq",
"modified" : "2024-01-29T20:57:00Z",
"published" : "2020-09-04T17:59:49Z",
"aliases" : [ ],
"summary" : "Denial of Service in http-proxy",
"details" : "Versions of `http-proxy` prior to 1.18.1 are vulnerable to Denial of Service. An HTTP request with a long body triggers an `ERR_HTTP_HEADERS_SENT` unhandled exception that crashes the proxy server. This is only possible when the proxy server sets headers in the proxy request using the `proxyReq.setHeader` function. \n\nFor a proxy server running on `http://localhost:3000`, the following curl request triggers the unhandled exception: \n```curl -XPOST http://localhost:3000 -d \"$(python -c 'print(\"x\"*1025)')\"```\n\n\n## Recommendation\n\nUpgrade to version 1.18.1 or later",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "http-proxy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.18.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/http-party/node-http-proxy/pull/1447/commits/4718119ffbe895aecd9be0d6430357d44b4c7fd3"
}, {
"type" : "WEB",
"url" : "https://github.com/http-party/node-http-proxy/pull/1447/files"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1486"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-184", "CWE-693" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T19:01:05Z",
"nvd_published_at" : null
}
}