# Axios HTTP/2 streamed uploads bypass maxBodyLength

Source: https://junglewise.ai/threats/axios-http-2-streamed-uploads-bypass-maxbodylength-4f7ce9e1  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-01. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

Severity: medium · CVSS 5.3 · Published 2026-08-01

Axios is a popular JavaScript HTTP client library used by many applications to make web requests. When using HTTP/2 with streaming uploads, axios fails to enforce the maxBodyLength limit, allowing attackers to transmit more data than intended. This can lead to excessive bandwidth consumption, cost overruns on egress traffic, and disruption of upstream services that have their own quota limits, but does not directly compromise credentials or enable code execution.

Technologies: [Axios](https://junglewise.ai/threats/technologies/axios). Vendors: [Axios](https://junglewise.ai/threats/vendors/axios).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Medium severity, with a CVSS score of 5.3, published 1 August 2026.

**Which products and versions are affected?** Axios >=1.13.0, <1.18.0.

**Is there a fix for This vulnerability?** A patch was published on 2026-07-06: Fixed in axios >=1.18.0 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is This vulnerability attacked?** It is attacked over the network, in a software library.

**Am I affected?** Check whether you run Axios at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a resource consumption bypass (CWE-400) in axios's HTTP/2 transport adapter. When httpVersion: 2 is specified, axios unconditionally selects the http2Transport path, which bypasses the byte-counting stream wrapper that normally enforces maxBodyLength limits. The wrapper is only applied when maxRedirects === 0, a condition not met by default. Node's native HTTP/2 request API does not honor the maxBodyLength option, so streamed uploads pipe unbounded into the request. Exploitation requires the application to use HTTP/2 (httpVersion: 2), pass a finite maxBodyLength value, and accept attacker-controlled stream data. The default unlimited maxBodyLength: -1 is not affected, nor are browser adapters or HTTP/1.1 requests. Patched versions &gt;=1.18.0 enforce the stream wrapper for all HTTP/2 streamed uploads. As a workaround, setting maxRedirects: 0 activates the wrapper on affected 1.15.1+ versions.

## Affected products

- axios axios >=1.13.0, <1.18.0

## Timeline

- 2026-08-01: disclosed: Duplicate advisory GHSA-fqj3-h9pc-443h published
- 2026-07-06: advisory: Primary advisory GHSA-mwf2-3pr3-8698 published
- 2026-07-06: patched: Fixed in axios >=1.18.0

## References

- [https://github.com/axios/axios/security/advisories/GHSA-mwf2-3pr3-8698](https://github.com/axios/axios/security/advisories/GHSA-mwf2-3pr3-8698)
- [https://www.vulncheck.com/advisories/axios-before-maxbodylength-bypass-via-http-2](https://www.vulncheck.com/advisories/axios-before-maxbodylength-bypass-via-http-2)

## Related threats

- [Axios NO_PROXY CIDR notation bypass in Node.js adapter](https://junglewise.ai/threats/cve-2026-101899-axios-cidr-form-no-proxy-entries-are-ignored-causing-proxy)
- [Axios prototype pollution in ToFormData](https://junglewise.ai/threats/cve-2026-101909-axios-is-a-promise-based-http-client-for-the-browser-and-node-js)
- [Axios fetch adapter header injection via prototype pollution](https://junglewise.ai/threats/cve-2026-101908-axios-is-a-promise-based-http-client-for-the-browser-and-node-js)
- [Axios fetch adapter maxRedirects bypass](https://junglewise.ai/threats/cve-2026-101907-axios-is-a-promise-based-http-client-for-the-browser-and-node-js)
- [Axios ReDoS in shouldBypassProxy regular expression](https://junglewise.ai/threats/cve-2026-101906-axios-is-a-promise-based-http-client-for-the-browser-and-node-js)
