REDHAT-BUG-2550659: Medium severity npm/axios vulnerability
Axios is a promise-based HTTP client for the browser and Node.js. From 1.15.0 until 1.20.0, Axios shouldBypassProxy treats the NOPROXY CIDR form as a textual hostname suffix instead of evaluating the network range. A request targets an address covered by a CIDR entry in NOPROXY while a proxy is configured. The CIDR bypass rule is not matched, so the request is sent through the configured proxy. For plaintext HTTP, the proxy can observe and modify URLs, headers, and bodies; for HTTPS, it can observe connection metadata and CONNECT requests. This issue is fixed in version 1.20.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.20.0
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using Axios versions 1.15.0 through before 1.20.0 are exposed when they configure an HTTP proxy and rely on a CIDR-form NO_PROXY entry to keep requests to covered addresses off that proxy.
What does an attacker need to exploit it?
A proxy must be configured and able to observe the misrouted request. Requests to an address intended to match a NO_PROXY CIDR rule are sent through that proxy instead.
What information can the proxy access?
For plaintext HTTP, the proxy can observe and modify URLs, headers, and bodies. For HTTPS, it can observe connection metadata and CONNECT requests.
What should be done if patching is not immediately possible?
Do not rely on CIDR-form NO_PROXY entries for Axios traffic while a proxy is configured. Ensure affected destinations are not routed through the proxy by other configuration means until Axios can be updated to 1.20.0.