Axios
Axios: maxRedirects: 0 is not enforced by the fetch adapter, allowing redirect-based SSRF
Axios is a promise-based HTTP client for the browser and Node.js. From 1.17.0 until 1.20.0, the fetch adapter bypasses the maxRedirects: 0 redirect policy. An Axios request uses the fetch adapter with maxRedirects set to zero and receives a redirect response. The underlying fetch implementation follows the redirect instead of returning the redirect response unchanged. The redirected request can access internal responses or reach state-changing internal endpoints despite redirects being disabled. This issue is fixed in version 1.20.0.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.0high · scored by CNA · CWE-441
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
axios axios
- >= 1.17.0, < 1.20.0
Fixed in 1.20.0
Mitigation
Upgrade axios to 1.20.0 or later.
References
- Vendor advisory github.com/axios/axios/security/advisories/GHS…
- Patch github.com/axios/axios/pull/11141
- Patch github.com/axios/axios/commit/d19040bda7a8be2f…
1 more
- Release notes github.com/axios/axios/releases/tag/v1.20.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.