Fetch adapter materializes complete FormData before enforcing `maxBodyLength`.

MediumGHSA-pf25-585g-9hp228 Nov · 2 days ago
Source

Does it affect you?

0/6All must holdTicks stay in this browser
Conditions read by Gemini. The sources remain the reference.Maintainer advisory

Timeline

28 Nov
28 hahead of the GitHub database so far
  1. Published by the maintainer in axios/axios28 Nov, 15:01 UTC
  2. Seen by Patchwire +6 h28 Nov, 20:56 UTC
  3. Not in the GitHub database 34 h later30 Nov, 01:25 UTC
axios1.21.0

Versions of axios

1.x
safe 1.21.0
AffectedSafe

Packages

Stacks

Related alerts(8)

Same packages
Medium
Exploitable 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
Open the alert
Medium
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
Open the alert
Medium
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
Open the alert
Medium
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
Open the alert
Low
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
Open the alert
High
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
Open the alert
High
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
Open the alert
High
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
Open the alert