Vulnerability library
Security checkJuly 20, 2026

Axios: Fetch adapter `ReadableStream` uploads bypass `maxBodyLength`

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmaxios

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated July 20, 2026