Description
axios’ fetch adapter does not enforce maxBodyLength for live WHATWG ReadableStream request bodies whose size cannot be determined before dispatch. Applications that use adapter: "fetch" and rely on maxBodyLength to cap untrusted upload/proxy streams can send the full stream even when it exceeds the configured limit.
Recommendation
Update the axios package to the latest compatible version. Followings are version details:
- Affected version(s): >= 1.7.0, < 1.18.0
- Patched version(s): 1.18.0
References
Could your website be exposed too?
SmartScanner can check your website for Axios: Fetch adapter `ReadableStream` uploads bypass `maxBodyLength` and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Axios' HTTP adapter-streamed uploads bypass maxBodyLength when maxRedirects: 0 - CVE-2026-42034
- Axios: HTTP/2 streamed uploads bypass `maxBodyLength` - CVE-2026-67318
- Axios: maxRedirects: 0 is not enforced by the fetch adapter, allowing redirect-based SSRF - CVE-2026-101907
- Axios: Prototype pollution gadget in fetch adapter can alter outbound requests - CVE-2026-101908


