CVE-2019-10196: Http proxy agent Remote Code Execution Vulnerability
MODERATECVE-2019-10196 is a MODERATE (CVSS 9.8) remote code execution vulnerability (CWE-665: Improper Initialization) affecting Http proxy agent libraries in the npm ecosystem. The issue involves resource exhaustion denial of service in http-proxy-agent. Remediation is available by upgrading affected packages to version 2.1.0.
CVE-2019-10196 at a Glance
Security Impact
CVSS: 9.8
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:H/I:H/A:H).
How to Fix CVE-2019-10196
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 CVE-2019-10196, 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-665: Improper Initialization, where the product does not initialize or incorrectly initializes a resource, which might leave the resource in an unexpected state when it is accessed or used. 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
CVE-2019-10196 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 CVE-2019-10196?
Which Http proxy agent versions are affected?
What version fixes CVE-2019-10196?
Is http-proxy-agent affected?
What is the CVSS score of CVE-2019-10196?
What CWE is associated with CVE-2019-10196?
How can I check npm dependencies for CVE-2019-10196?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-86wf-436m-h424",
"modified" : "2021-03-31T21:09:25Z",
"published" : "2022-01-06T20:30:13Z",
"aliases" : [ "CVE-2019-10196" ],
"summary" : "Resource Exhaustion Denial of Service in http-proxy-agent ",
"details" : "A flaw was found in http-proxy-agent, prior to version 2.1.0. It was discovered http-proxy-agent passes an auth option to the Buffer constructor without proper sanitization. This could result in a Denial of Service through the usage of all available CPU resources and data exposure through an uninitialized memory leak in setups where an attacker could submit typed input to the auth parameter.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "http-proxy-agent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10196"
}, {
"type" : "WEB",
"url" : "https://github.com/TooTallNate/node-http-proxy-agent/commit/b7b7cc793c3226aa83f820ce5c277e81862d32eb"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1567245"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/607"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-665" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-03-22T22:28:09Z",
"nvd_published_at" : "2021-03-19T20:15:00Z"
}
}