REDHAT-BUG-2487949: High severity npm/axios vulnerability
Axios is a promise based HTTP client for the browser and Node.js. Axios versions 1.7.0 through 1.15.x did not enforce configured request and response size limits when requests were sent with the fetch adapter. Applications that selected adapter: 'fetch', or ran in environments where axios resolved to the fetch adapter, could receive or send bodies larger than maxContentLength or maxBodyLength despite those limits being explicitly configured. This can cause resource exhaustion in server-side usage when a malicious or compromised server returns an oversized response, when an attacker can supply a large data: URL, or when an application forwards attacker-controlled request bodies through axios while relying on maxBodyLength as a boundary. This vulnerability is fixed in 0.32.0 and 1.16.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
axiosto a version that resolves this vulnerability.Fixed in 0.32.0 - Upgrade
Upgrade
axiosto a version that resolves this vulnerability.Fixed in 1.16.0
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2487949?
The severity of REDHAT-BUG-2487949 is classified as high with a score of 7.
How do I fix REDHAT-BUG-2487949?
To fix REDHAT-BUG-2487949, upgrade Axios to a version higher than 1.15.x that enforces request and response size limits.
What versions of Axios are impacted by REDHAT-BUG-2487949?
Axios versions 1.7.0 through 1.15.x are impacted by REDHAT-BUG-2487949.
What is the main issue described in REDHAT-BUG-2487949?
The main issue in REDHAT-BUG-2487949 is the lack of enforcement of configured request and response size limits in affected Axios versions.
Is there a workaround for REDHAT-BUG-2487949 until it is fixed?
A potential workaround for REDHAT-BUG-2487949 is to avoid using the fetch adapter or limit the usage of Axios in high-risk environments.