Incomplete proxy bypass in Axios HTTP client by Axios
CVE-2026-42038

6.8MEDIUM

Key Information:

Vendor

AxiOS

Status
Vendor
CVE Published:
24 April 2026

What is CVE-2026-42038?

Prior to versions 1.15.1 and 0.31.1, Axios, a widely-used promise-based HTTP client, has a flaw that improperly handles the no_proxy environment variable. Specifically, when no_proxy=localhost is configured, requests aimed at loopback addresses (127.0.0.1 and [::1]) fail to bypass the designated proxy as expected. The function responsible for determining whether to bypass the proxy does not account for IP aliases or loopback equivalents, which can lead to unintended traffic routing through the proxy. This vulnerability can expose sensitive data or alter network behavior unintentionally.

Affected Version(s)

axios >= 1.0.0, < 1.15.1 < 1.0.0, 1.15.1

axios < 0.31.1 < 0.31.1

References

CVSS V3.1

Score:
6.8
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.