CVE-2026-42034

Axios: HTTP adapter streamed uploads bypass maxBodyLength when maxRedirects: 0

Published Apr 24, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, for stream request bodies, maxBodyLength is bypassed when maxRedirects is set to 0 (native http/https transport path). Oversized streamed uploads are sent fully even when the caller sets strict body limits. This vulnerability is fixed in 1.15.1 and 0.31.1.

Analysis

AI-generated

Technical impact

The vulnerability allows a bypass of the maxBodyLength restriction for streamed request bodies when maxRedirects is set to 0. An attacker can send arbitrarily large payloads that are fully transmitted despite caller‑defined size limits, potentially exhausting server resources and causing a denial of service.

Affected Systems

Axios HTTP client for Node.js and the browser is affected. All releases prior to 1.15.1 and 0.31.1 are vulnerable. The issue is present when the native http/https transport path handles streamed uploads with redirects disabled.

Risk and Exploitability

The CVSS base score of 5.3 indicates a moderate severity. The EPSS score of less than 1% shows a low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Exploitation would occur when a client using Axios sends a streamed request with maxRedirects set to 0 to a target that accepts the upload; the request bypasses size limits and can consume bandwidth, memory or storage, leading to service disruption. The attack vector is inferred to be HTTP requests originating from code that uses this configuration.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Axios to 1.15.1 or 0.31.1 or later
  • Ensure maxRedirects is not set to 0 when sending streamed uploads, or configure appropriate body limitations
  • Avoid using streamed uploads to endpoints where redirects are disabled until the library is updated

Generated by OpenCVE AI on April 28, 2026 at 05:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5c9x-8gcm-mpgx Axios' HTTP adapter-streamed uploads bypass maxBodyLength when maxRedirects: 0
History
Type Values Removed Values Added
First Time appeared Axios
Axios axios
CPEs cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*
Vendors & Products Axios
Axios axios
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', '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. Prior to 1.15.1 and 0.31.1, for stream request bodies, maxBodyLength is bypassed when maxRedirects is set to 0 (native http/https transport path). Oversized streamed uploads are sent fully even when the caller sets strict body limits. This vulnerability is fixed in 1.15.1 and 0.31.1.
Title Axios: HTTP adapter streamed uploads bypass maxBodyLength when maxRedirects: 0
Weaknesses CWE-770
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 24, 2026, 6:13 PM
Reserved
Apr 23, 2026, 4:05 PM
Status
Analyzed
Published
Apr 24, 2026, 6:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Moderate
Public date
Apr 24, 2026, 5:59 PM