CVE-2026-42034

Allocation of Resources Without Limits or Throttling
Affects
axios
in
Axios
No items found.
Versions
>=1.0.0, <1.15.1; <0.31.1

Patch Available.

Exclamation circle icon
Patch Available

This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.

Overview

Axios is a promise-based HTTP client for JavaScript applications running in the browser and Node.js. It provides a simple API, flexible request and response interceptors, and built-in support for automatic JSON transformation, request cancellation, and timeouts to simplify communication with APIs and services.

A vulnerability (CVE-2026-42034) has been identified in Axios’s handling of streamed HTTP uploads. Axios supports maxBodyLength to limit outgoing request sizes. However, when maxRedirects: 0 is configured, streamed request bodies bypass this limit and can be transmitted in full. Oversized uploads may therefore consume excessive resources and potentially cause denial of service.

This failure to enforce upload-size limits maps to CWE-770 (Allocation of Resources Without Limits or Throttling), where intended restrictions on resource consumption are missing or ineffective. In Axios, streamed uploads can exceed the configured maxBodyLength when redirects are disabled. Without independent limits, processing these uploads could exhaust resources and impair service availability.

Details

Module Info

Vulnerability Info

This medium-severity vulnerability affects Node.js applications using Axios’s HTTP adapter with streamed request bodies, maxRedirects: 0, and a configured maxBodyLength. Disabling redirects selects the native HTTP/HTTPS transport, which does not enforce Axios’s body-size setting. Axios pipes the stream into the request without counting bytes. The advisory assigns a CVSS v3.1 score of 5.3.

An attacker who can influence data forwarded through an affected upload stream could cause the application to transmit more data than intended. Exploitation depends on the vulnerable configuration and the absence of independent upload limits, potentially resulting in resource exhaustion or denial of service.

This behavior aligns with CWE-770 (Allocation of Resources Without Limits or Throttling). Ineffective resource limits can allow excessive work to consume capacity needed by other operations. The practical impact depends on how the sending application and receiving service process the oversized upload.

Mitigation

Users of affected Axios packages should apply one of the following mitigations:

  • Upgrade to a patched version of the axios package.
  • Leverage commercial support — HeroDevs provides security support for Axios.
Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
Medium
ID
CVE-2026-42034
PROJECT Affected
axios
Versions Affected
>=1.0.0, <1.15.1; <0.31.1
NES Versions Affected
Published date
September 23, 2026
≈ Fix date
September 9, 2026
Category
Allocation of Resources Without Limits or Throttling
Vex Document
Download VEXHow do I use it?
Sign up for the latest vulnerability alerts fixed in
NES for Axios
Rss feed icon
Subscribe via RSS
or

By submitting the form I acknowledge receipt of our Privacy Policy.

Thanks for signing up for our Newsletter! We look forward to connecting with you.
Oops! Something went wrong while submitting the form.