Axios proxy: false bypassed by Node’s native proxy agent.
HighGHSA-wwgw-vggh-5g7424 Nov · 6 days ago
Does it affect you?
Under reviewA person checks critical advisories before their conditions show.
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. 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…
SourcesMaintainer advisory
Timeline
24 Nov5 daysahead of the GitHub database so far
- Published by the maintainer in axios/axios24 Nov, 18:47 UTC
- Seen by Patchwire +4 h24 Nov, 23:02 UTC
- Not in the GitHub database 5 days later30 Nov, 01:25 UTC
axios1.21.00.35.0
Versions of axios
1.x
safe 1.21.0
0.35.x
safe 0.35.0
AffectedSafe
Related alerts(8)
Same packagesExploitable only if · read by Gemini, the source remains the reference
- Node service accepts a deeply nested object, forwards it as Axios params, and does not catch the synchronous exception.
- Plain-object params passed through Axios method shortcuts, including get() and other aliases that merge config before invoking request().
- Affected
- axios >=0.20.0 <0.35.0 · axios >=1.0.0 <1.21.0
- Fixed in
- 1.21.0 · 0.35.0
- ID
- GHSA-mw39-9473-h7mr
Exploitable only if · read by Gemini, the source remains the reference
- Axios 1.12.2 through 1.20.0 is used.
- The fetch adapter is used explicitly or in an environment where Axios selects fetch by default.
- A separate prototype-pollution source pollutes Object.prototype.
- Affected
- axios >=1.12.2 <1.21.0
- Fixed in
- 1.21.0
- ID
- GHSA-w7cm-vp9h-3qp4
Exploitable only if · read by Gemini, the source remains the reference
- The application must use the Fetch adapter.
- Configure a finite maxContentLength.
- Allow an attacker to supply a large URL.
- Affected
- axios >=1.16.0
- Fixed in
- none found
- ID
- GHSA-5gxj-9r28-x6r4
Exploitable only if · read by Gemini, the source remains the reference
- Axios Node HTTP adapter is used.
- An environment-selected HTTPS proxy is configured.
- A relevant NO PROXY rule is set.
- An HTTPS redirect follows from a proxied origin to a matching HTTPS target.
- Affected
- axios >=1.16.1 <1.21.0
- Fixed in
- 1.21.0
- ID
- GHSA-hff3-76v2-562j
Exploitable only if · read by Gemini, the source remains the reference
- A standard browser environment using the XHR or Fetch adapter.
- An attacker-controlled base element that becomes the effective first base element.
- No effective CSP base-uri restriction blocking that base.
- A relative Axios request URL.
- A readable XSRF cookie and enabled XSRF header.
- Default, unset, or nullish withXSRFToken behavior.
- A victim rendering the page and triggering the request.
- An attacker-controlled destination that accepts the CORS preflight.
- Affected
- axios >=1.7.8 <1.21.0
- Fixed in
- 1.21.0
- ID
- GHSA-v2qg-6486-r9rf
Exploitable only if · read by Gemini, the source remains the reference
- Axios versions 1.0.0 through 1.20.0.
- Runtime use of the Node.js HTTP adapter.
- A positive upload or download maxRate below 2 bytes per second is configured.
- Affected
- axios >=1.0.0 <1.21.0
- Fixed in
- 1.21.0
- ID
- GHSA-r7r7-378m-mqq3
Exploitable only if · read by Gemini, the source remains the reference
- An application passes attacker-influenced object structure into an affected Axios serializer.
- A top-level object key ends in [].
- Affected
- axios >=0.27.0 <0.35.0 · axios >=1.0.0 <1.21.0
- Fixed in
- 1.21.0 · 0.35.0
- ID
- GHSA-hxh7-q3v4-r388
Exploitable only if · read by Gemini, the source remains the reference
- Accept or derive a FormData field name from untrusted input.
- Pass a FormData implementation exposing entries() to Axios.
- Request FormData-to-JSON conversion through Content-Type: application/json.
- Lack application-level validation limiting numeric path components.
- Affected
- axios >=0.28.0 <0.35.0 · axios >=1.0.0 <1.21.0
- Fixed in
- 1.21.0 · 0.35.0
- ID
- GHSA-2m9r-3c99-8x45