CVE-2026-42038: Axios: no_proxy bypass via IP alias allows SSRF
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, he fix for no_proxy hostname normalization bypass is incomplete. When no_proxy=localhost is set, requests to 127.0.0.1 and [::1] still route through the proxy instead of bypassing it. The shouldBypassProxy() function does pure string matching — it does not resolve IP aliases or loopback equivalents. This vulnerability is fixed in 1.15.1 and 0.31.1.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-42038?
CVE-2026-42038 has a medium severity rating due to its potential for allowing server-side request forgery (SSRF) attacks.
How do I fix CVE-2026-42038?
To fix CVE-2026-42038, upgrade Axios to version 1.15.1 or later, or 0.31.1 or later.
What systems are impacted by CVE-2026-42038?
CVE-2026-42038 impacts Axios versions prior to 1.15.1 and 0.31.1 on both browser and Node.js environments.
What does CVE-2026-42038 affect in Axios?
CVE-2026-42038 affects the no_proxy hostname normalization, allowing IP alias bypass that can lead to SSRF vulnerability.
Is there a workaround for CVE-2026-42038?
There is no official workaround for CVE-2026-42038; upgrading to the fixed versions is the recommended approach.