Vulnerability DatabaseGHSA-wwgw-vggh-5g74

GHSA-wwgw-vggh-5g74: 
JavaScript vulnerability analysis and mitigation

Summary

Axios’s Node HTTP adapter can fail to honor proxy: false when the selected Node agent has native proxyEnv support enabled. On Node 22.21.0+ or 24.5.0+, this can occur with NODE_USE_ENV_PROXY=1, --use-env-proxy, or an explicitly configured proxy-enabled agent. A configured proxy can then receive a request that application code intended to send directly. Node HTTP proxy documentation.

Impact

For plain HTTP requests, that proxy can see the absolute target URL, headers, credentials, cookies, and body, and can return a response Axios accepts. Exploitation requires the request to use proxy: false, the destination not to be excluded by the effective NO_PROXY configuration, and an observing or hostile proxy in the configured path. Merely installing an affected Axios version does not expose traffic. HTTPS normally uses a CONNECT tunnel with end-to-end TLS, so this finding does not demonstrate HTTPS header or body disclosure under normal certificate validation. The demonstrated impact is in Node runtime requests, not package installation or browser execution.

Affected Functionality

The demonstrated path is Axios’s Node HTTP adapter making HTTP/1 requests with proxy: false, using either its default redirect-following transport or maxRedirects: 0. It also occurs when the caller supplies an http.Agent with proxyEnv. Browser adapters do not use Node’s global agent. This review did not establish the same impact for the Node fetch adapter.

Technical Details

The adapter’s setProxy() skips Axios’s environment-proxy lookup when the config value is false. With no non-proxy custom agent, Axios then leaves options.agent undefined. Node consequently uses its global agent, which can have proxyEnv: process.env and route the request through the environment proxy. An explicit custom agent with proxyEnv has the same result. The proxy: false decision is never enforced at that lower layer. v1.20.0 adapter, Node HTTP documentation.

Proof of Concept of Attack

With an affected Axios version installed, run this local-only example on a Node version with native proxy support:

const http = require('http');
const {spawn} = require('child_process');
let targetHits = 0;
const target = http.createServer((req, res) => {
  targetHits++;
  res.end('target');
});
const proxy = http.createServer((req, res) => {
  console.log('proxy saw:', req.url, req.headers.authorization);
  res.end('proxy');
});
target.listen(0, '127.0.0.1', () => {
  proxy.listen(0, '127.0.0.1', () => {
    const proxyURL = `http://127.0.0.1:${proxy.address().port}`;
    const targetURL = `http://127.0.0.1:${target.address().port}/private`;
    const code = "require('axios').get(process.argv[1], {proxy:false, headers:{Authorization:'Bearer LAB_ONLY'}}).then(r=>console.log('Axios
    got:',r.data)).catch(e=>{console.error(e);process.exitCode=1})";
    const child = spawn(process.execPath, ['-e', code, targetURL], {
      env: {...process.env, NODE_USE_ENV_PROXY:'1',
        HTTP_PROXY:proxyURL, http_proxy:proxyURL,
        NO_PROXY:'', no_proxy:''},
      stdio: 'inherit'
    });
    child.on('close', () => {
      console.log('target hits:', targetHits);
      target.close();
      proxy.close();
    });
  });
});

Observed: the proxy prints the absolute URL and Bearer LAB_ONLY, Axios prints proxy, and target hits is 0. Supplying a plain http.Agent without proxyEnv instead sent the request to the target in my test.

Workarounds

For direct-only requests, supply an HTTP or HTTPS agent constructed without proxyEnv, preserving any required connection or TLS options. For example, set httpAgent: new http.Agent() for the HTTP case. maxRedirects: 0 alone does not prevent the leak. <details> <summary><h3>Original report</h3></summary> Summary On Node.js versions with native environment-proxy support enabled, Axios does not reliably honor an explicit proxy: false request configuration. When the selected Node HTTP agent has proxyEnv enabled, including the default global agent created by NODE_USE_ENV_PROXY=1 or --use-env-proxy, requests marked proxy: false are still sent through the environment-configured proxy. For plain HTTP requests, the unintended proxy receives the complete absolute request URL and request headers, including Authorization, and can provide the response accepted by Axios. This violates the documented behavior of proxy: false, which is intended to disable proxies and ignore environment proxy variables. Details Axios reads the caller’s explicit proxy configuration in the Node HTTP adapter: const configProxy = own('proxy'); setProxy() correctly avoids Axios’s own proxy-from-env lookup when configProxy is false: let proxy = configProxy; const proxyEnvAgent = getProxyEnvAgent( options, configHttpAgent, configHttpsAgent ); if ( !proxy && proxy ! false && !isNodeEnvProxyEnabled(proxyEnvAgent) ) { const proxyUrl = getProxyForUrl(location); // ... } However, proxy: false is not propagated to the lower Node agent layer. After setProxy() returns, Axios selects the configured HTTP/HTTPS agent. If no custom non-proxy agent was supplied, the request ultimately uses Node’s global agent: if (options.agent null) { options.agent = isHttpsRequest ? httpsAgent : httpAgent; } On supported Node versions, starting the process with: NODE_USE_ENV_PROXY=1 causes Node’s global HTTP and HTTPS agents to be constructed with: proxyEnv: process.env The agent therefore performs environment proxy routing below Axios, even though Axios received an explicit proxy: false configuration. The effective request path becomes: Axios config: proxy: false | v Axios skips its own environment proxy lookup | v Node global agent still has proxyEnv enabled | v Request is sent through HTTP_PROXY Security boundary This does not require the attacker to control the process environment. A deployment may intentionally configure a corporate, shared, monitoring, or egress proxy globally while using proxy: false for individual requests that must be sent directly. Examples include requests to: Loopback services Private network APIs Internal authentication services Direct-only service endpoints Services using credentials that must not be disclosed to the global proxy The configured proxy may be operated by a different security authority, compromised, incorrectly configured, or simply not authorized to receive the excluded request. Axios’s documented threat model identifies config.proxy: false as the mitigation that disables environment-based proxy detection entirely. The observed behavior violates that stated mitigation. PoC The attached reproduction is local-only. It starts: An intended loopback HTTP target. A simulated loopback environment proxy. The child Node process is started with: NODE_USE_ENV_PROXY=1 HTTP_PROXY=http://127.0.0.1:<proxy-port> NO_PROXY= It then performs four Axios requests: proxy: false using the default Axios transport. proxy: false with maxRedirects: 0. proxy: false using a plain http.Agent without proxyEnv. A normal environment-proxy control request. Run: npm install --ignore-scripts npm run poc Requirements: Node 22.21.0 or later in the Node 22 line Node 24.5.0 or later Observed result Tested against the published axios@1.18.1 package on: Node v22.21.1 Node v24.18.0 For both runtimes: proxy: false + default transport: Proxy received request: yes Proxy received Authorization: yes Intended target received request: no Axios accepted proxy response: yes proxy: false + maxRedirects: 0: Proxy received request: yes Proxy received Authorization: yes Intended target received request: no Axios accepted proxy response: yes proxy: false + plain non-proxy agent: Proxy received request: no Intended target received request: yes The proxy received these harmless test credentials: Bearer LAB_ONLY_DEFAULT Bearer LAB_ONLY_NATIVE Expected result When proxy: false is explicitly configured, Axios should prevent environment-proxy routing at both layers: Axios’s own proxy-from-env handling Node agent-level proxyEnv handling The intended target should receive the request directly, and the configured proxy should receive nothing. Impact An unintended HTTP proxy can receive: The complete absolute target URL Authorization headers Cookies and other request headers Request bodies Internal hostnames and ports The proxy can also return an attacker-controlled response that Axios presents to the application as the target’s response. The strongest practical scenario is a request to a loopback or internal plain-HTTP service where application code deliberately uses proxy: false to keep credentials and traffic away from the globally configured proxy. HTTPS impact is lower because Node’s proxy implementation uses tunneling and retains end-to-end TLS to the destination. This report is specifically concerned with plain HTTP direct-only requests. Affected versions 0.17.0 through 0.34.0 and 1.0.0 through 1.20.0. proxy: false was introduced in 0.17.0. Maintainer runtime checks with NODE_USE_ENV_PROXY=1 confirmed the request went through the proxy on 0.17.0, 0.30.3, 0.34.0, 1.0.0, 1.13.6, 1.14.0, 1.15.0 and 1.20.0. Fixed in 0.35.0 and 1.21.0, which connect directly when proxy: false is set. Related public reports Issue #7299 reported double application of Axios and Node native proxy handling. That issue identified proxy: false as the working workaround. PR #10942 fixed the double-proxy behavior by deferring environment proxy handling to Node, but did not add an end-to-end proxy: false integration test. This report covers the opposite and security-relevant failure: the documented bypass control does not bypass Node’s native proxy agent, allowing the proxy to receive credentials and control the response. Suggested remediation When config.proxy === false, Axios should ensure that the selected request agent cannot perform environment-proxy routing for that request. Possible approaches include: Selecting or constructing an equivalent non-proxy agent without proxyEnv. Providing a per-request native-proxy bypass if supported by Node. Avoiding the proxy-enabled global agent for requests configured with proxy: false. The fix should preserve relevant custom-agent settings where possible and should cover: Default redirect-following requests maxRedirects: 0 HTTP and HTTPS agents Redirected requests Global agents created by NODE_USE_ENV_PROXY=1 Custom agents explicitly constructed with proxyEnv A regression test should use the real Node request path rather than testing only the setProxy() option transformation. axios-proxy-false-native-proxyenv-dev-repro.zip </details>


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-wwgw-vggh-5g74HIGH8.3
  • JavaScript logoJavaScript
  • axios
NoYesNov 24, 2026
GHSA-g987-ghpm-49w8HIGH8.3
  • JavaScript logoJavaScript
  • axios
NoYesNov 24, 2026
GHSA-37m8-qm4g-gxcgHIGH8.3
  • JavaScript logoJavaScript
  • axios
NoYesNov 24, 2026
GHSA-9wvp-77p3-9wf3HIGH7.6
  • JavaScript logoJavaScript
  • @copilotkit/runtime
NoYesNov 24, 2026
GHSA-8899-x9g3-4xgrMEDIUM5.3
  • JavaScript logoJavaScript
  • payload
NoYesNov 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management