Vulnerability library
Security checkSeptember 30, 2026

Axios: maxRedirects: 0 is not enforced by the fetch adapter, allowing redirect-based SSRF

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

High severitynpmaxios

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Axios exposes maxRedirects to limit redirect following, and maxRedirects: 0 is used by applications as a redirect-based SSRF guard. The Node HTTP adapter enforces this option. The fetch adapter does not read it and does not set a Fetch API redirect mode, so the runtime default of redirect: 'follow' applies.

Recommendation

Update the axios package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 1.17.0, < 1.20.0
  • Patched version(s): 1.20.0

References

Could your website be exposed too?

SmartScanner can check your website for Axios: maxRedirects: 0 is not enforced by the fetch adapter, allowing redirect-based SSRF and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 30, 2026