GHSA-8w57-jfpm-945m: Http proxy agent Denial of Service Vulnerability

HIGH
CWE-400
Published
Advisory Summary

GHSA-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.

GHSA-8w57-jfpm-945m at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8w57-jfpm-945m
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Http proxy agent
Package Ecosystem npm
Published Date
Last Updated

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.

http-proxy-agent fixed: 2.1.0
npm install http-proxy-agent@2.1.0
Verify Direct and Transitive Dependencies

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

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. ## Recommendation Update to version 2.1.0 or later.

GHSA-8w57-jfpm-945m Affected Http proxy agent Versions

1 component(s)
Fixed Versions:
2.1.0
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?
GHSA-8w57-jfpm-945m is a security vulnerability in Http proxy agent involving Denial of Service in http-proxy-agent under CWE-400: Uncontrolled Resource Consumption.
Which Http proxy agent versions are affected?
Affected versions include releases prior to 2.1.0 across affected packages: http-proxy-agent.
What version fixes GHSA-8w57-jfpm-945m?
Upgrading to 2.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is http-proxy-agent affected?
Yes, http-proxy-agent is affected in releases prior to 2.1.0. Upgrade your dependency to 2.1.0 or later.
What CWE is associated with GHSA-8w57-jfpm-945m?
GHSA-8w57-jfpm-945m is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for GHSA-8w57-jfpm-945m?
Run the dependency tree command: 'npm ls http-proxy-agent'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}