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.
Published: 2026-04-24
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unbounded resource consumption leading to denial of service
Action: Apply Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Wed, 06 May 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 27 Apr 2026 20:00:00 +0000

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

Fri, 24 Apr 2026 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 24 Apr 2026 18:15:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-24T18:32:49.313Z

Reserved: 2026-04-23T16:05:01.708Z

Link: CVE-2026-42036

cve-icon Vulnrichment

Updated: 2026-04-24T18:30:28.720Z

cve-icon NVD

Status : Analyzed

Published: 2026-04-24T18:16:30.410

Modified: 2026-04-27T19:57:11.670

Link: CVE-2026-42036

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-04-24T18:00:33Z

Links: CVE-2026-42036 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-28T13:45:06Z

Weaknesses