CVE-2026-42036

Axios: HTTP adapter streamed responses bypass maxContentLength

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, when responseType: 'stream' is used, Axios returns the response stream without enforcing maxContentLength. This bypasses configured response-size limits and allows unbounded downstream consumption. This vulnerability is fixed in 1.15.1 and 0.31.1.

Analysis

AI-generated

Technical impact

Axios allows HTTP responses sent as streams to bypass the configured maximum content length. This means that, when responseType: 'stream' is used, the client can receive data of arbitrary size without any limits, potentially exhausting memory or disk resources. The weakness conforms to CWE-770, Resource Exhaustion, and can cause a denial of service if the stream grows large enough.

Affected Systems

Versions of axios prior to 1.15.1 (for npm) and 0.31.1 (for older releases) are affected. The vulnerability applies to both Node.js and browser environments that use axios to request data via streams.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. The EPSS score of less than 1% implies a low probability of exploitation at present, and the vulnerability is not listed in the CISA KEV catalog. An attacker can trigger the issue by sending a very large streamed response to an application that processes it with axios. The likely attack vector is a remote HTTP endpoint from which a client requests a large stream, potentially exhausting system resources and causing a service outage.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade axios to version 1.15.1 or later (or 0.31.1 for older releases) to enforce maxContentLength for streamed responses.
  • Disable the use of responseType 'stream' or manually set the maxContentLength configuration until a patch is applied.
  • Rely on an HTTP reverse proxy or middleware that enforces request/response size limits to mitigate resource exhaustion if the upgrade cannot be performed immediately.

Generated by OpenCVE AI on April 28, 2026 at 13:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vf2m-468p-8v99 Axios: HTTP adapter streamed responses bypass maxContentLength
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, when responseType: 'stream' is used, Axios returns the response stream without enforcing maxContentLength. This bypasses configured response-size limits and allows unbounded downstream consumption. This vulnerability is fixed in 1.15.1 and 0.31.1.
Title Axios: HTTP adapter streamed responses bypass maxContentLength
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:32 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, 6:00 PM