axios
Affected
- introduced
1.0.0, fixed1.15.1(semver)
Fixed versions
1.15.1
Fix
- Fixed version
1.15.1npm install [email protected]
Advisory
Also known as: CVE-2026-42036
Axios: HTTP adapter streamed responses bypass maxContentLength
Summary
When responseType: 'stream' is used, Axios returns the response stream without enforcing maxContentLength. This bypasses configured response-size limits and allows unbounded downstream consumption.
Details
In lib/adapters/http.js:
So callers may set maxContentLength and still receive/read arbitrarily large streamed responses.
PoC
Environment:
Steps:
Observed:
Control check:
Impact
Type: DoS / unbounded response processing.
Impacted: Node.js applications relying on maxContentLength as a safety boundary while using streamed Axios responses.
Medium Basis: The source's own band: MODERATE
1.0.0, fixed 1.15.1 (semver)1.15.1
1.15.1npm install [email protected]0, fixed 0.31.1 (semver)0.31.1
0.31.1npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0