CVE-2026-101907

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

Published Sep 28, 2026 CVSS 4.0 · 7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The Axios JavaScript HTTP client has a flaw in versions 1.17.0 through 1.19.9 where the fetch adapter ignores the maxRedirects: 0 setting. Instead of returning the redirect response, the underlying fetch implementation follows the redirect, allowing the client to reach internal resources or invoke state‑changing endpoints that should be inaccessible when redirects are disabled. This behavior can be exploited to deliver a Server Side Request Forgery attack, where a malicious URL is supplied to an application that then performs a redirect to a protected internal network location.

Affected Systems

The vulnerability affects the Axios library across all platforms that employ the fetch adapter, specifically versions 1.17.0 to 1.19.9 inclusive. Applications that embed Axios in web front‑ends, Node.js services, or any environment that uses the fetch adapter for HTTP requests are exposed. Updating the library to 1.20.0 or newer removes the bug.

Risk and Exploitability

The CVSS score of 7 identifies the issue as high severity. The EPSS score of < 1% indicates a very low exploitation probability at present, and the flaw is not listed in CISA’s KEV catalog. The likely attack vector is remote; it is inferred that an attacker can trigger the redirect by supplying a malicious URL in an Axios request, especially if the application accepts or forwards untrusted URLs. Because the rewritten request can reach internal resources, the risk remains significant for systems that build HTTP calls from user input or redirect‑friendly environments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Axios to version 1.20.0 or later to apply the vendor‑supplied fix that enforces the maxRedirects policy.
  • If an upgrade is not immediately feasible, replace the fetch adapter with a custom adapter or the default Node HTTP adapter that properly honors redirect limits.
  • Implement input validation to restrict URLs used in Axios calls, rejecting those that trigger redirects or point to internal networks until a secure configuration is in place.

Generated by OpenCVE AI on September 30, 2026 at 04:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-r4gj-5m52-g5wh Axios: maxRedirects: 0 is not enforced by the fetch adapter, allowing redirect-based SSRF
History
Type Values Removed Values Added
Weaknesses CWE-918
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Axios
Axios axios
Vendors & Products Axios
Axios axios
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Axios: maxRedirects: 0 is not enforced by the fetch adapter, allowing redirect-based SSRF
Weaknesses CWE-441
CWE-601
References
Metrics cvssV4_0

{'score': 7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N'}

Weaknesses
  • CWE-441

    Unintended Proxy or Intermediary ('Confused Deputy')

  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 28, 2026, 6:46 PM
Reserved
Sep 28, 2026, 3:55 PM
Status
Awaiting Analysis
Published
Sep 28, 2026, 6:17 PM
Modified
Sep 30, 2026, 7:38 PM
Severity
Moderate
Public date
Sep 28, 2026, 5:36 PM