Skip to main content

Axios HTTP client CVE-2026-42038

| EUVDEUVD-2026-25604 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-04-24 GitHub_M GHSA-m7pr-hjqh-92cm
6.8
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Configure proxy upstream
  2. Delivery
    Application sets no_proxy=localhost
  3. Exploit
    Attacker triggers request to 127.0.0.1 or [::1]
  4. Install
    shouldBypassProxy() performs string match
  5. C2
    Loopback IP not matched
  6. Execute
    Request routes through proxy
  7. Impact
    Attacker intercepts via proxy
  8. Step 8
    Data exposure or service compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that Axios be configured with a no_proxy setting that explicitly lists localhost or local hostnames (e.g., no_proxy=localhost or no_proxy=127.0.0.1,localhost). The target application must make HTTP requests to IPv4 loopback (127.0.0.1) or IPv6 loopback ([::1]) addresses rather than using the string 'localhost'. A proxy server must be configured upstream of the Axios client (via http_proxy, https_proxy, or equivalent environment variables or explicit proxy configuration in Axios options). The attacker must have network visibility into proxy traffic, proxy logs, or control over the proxy itself to observe or intercept the unintended proxy-routed request. Exploitation does not require authentication to the target Axios application or the proxy. The vulnerability does not affect configurations where no proxy is set, where no_proxy includes explicit IP address patterns that match the loopback addresses, or where the application explicitly requests localhost by hostname rather than IP address.

Impact

This vulnerability presents moderate-to-high risk despite the 6.8 CVSS score because it combines a network-exploitable attack vector (AV:N) with high confidentiality impact (C:H) but elevated attack complexity (AC:H). The AC:H and changed scope (S:C) elements suggest the exploit requires specific deployment conditions-likely a proxy configuration where the attacker controls or can observe proxy behavior-but once exploitation conditions are met, sensitive data exposure is possible. The SSRF nature (CWE-918) indicates attackers could leverage this to access internal services that trust loopback traffic, bypass authentication mechanisms that rely on IP-based filtering, or exfiltrate data through proxy logs. No KEV status, EPSS score, or public exploit details were provided in the intelligence data. The vulnerability is patched in released versions (1.15.1 and 0.31.1), reducing urgency for organizations on patching cycles but requiring immediate action for applications with strict no_proxy security policies. Risk is elevated for deployments using Axios in proxy-aware environments (corporate proxies, security appliances, API gateways) where proxy bypass is a security control rather than a convenience feature.

Exploit ScenarioDerived

An attacker in a network environment where a corporate or ISP proxy is configured targets an organization using Axios with no_proxy=localhost. The attacker crafts a request to 127.0.0.1 or [::1] (e.g., an internal admin API or metadata service on the loopback interface) expecting the request to bypass the proxy due to the no_proxy setting. Instead, the request routes through the proxy unintentionally, allowing the attacker to intercept, log, or replay the request if they have visibility into the proxy, or to use the proxy as a pivot point to access internal services that should have been protected by the no_proxy bypass.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 24, 2026

Axios versions prior to 1.15.1 and 0.31.1 fail to properly bypass proxy configurations when no_proxy=localhost is set, allowing attackers to route requests to loopback addresses (127.0.0.1 and [::1]) through proxy servers instead of bypassing them. This Server-Side Request Forgery (SSRF) vulnerability arises because the shouldBypassProxy() function performs only string matching without resolving IP aliases or loopback equivalents, potentially exposing internal services to proxy interception or manipulation with a CVSS score of 6.8 (high confidentiality impact over changed scope).

RemediationAI

Upgrade Axios to version 1.15.1 or later for the 1.x branch, or to version 0.31.1 or later for the 0.x branch. These versions include the corrected hostname normalization logic that properly resolves IP aliases and loopback addresses against the no_proxy configuration. For applications unable to upgrade immediately, implement a workaround by wrapping Axios HTTP calls with custom IP-to-hostname resolution logic that explicitly normalizes loopback addresses (127.0.0.1, ::1, localhost) to a canonical form before proxy evaluation, though this requires application-level code changes and carries the trade-off of increased latency and maintenance burden. Alternatively, enforce proxy bypass at the network layer (e.g., firewall rules, reverse proxy configuration) rather than relying solely on HTTP client library logic, though this reduces flexibility and may not be feasible in all architectures. Review all no_proxy configurations in use to identify where loopback address bypass is critical; prioritize patching those instances first. Consult https://github.com/axios/axios/security/advisories/GHSA-m7pr-hjqh-92cm for detailed upgrade instructions and confirmation of fix completeness.

Affected VersionsENISA

axios < 0.31.1
axios 1.0.0, < 1.15.1

Affected Packages

npm axios fix: 0.31.1, 1.15.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Axios is a promise-based HTTP client library for both browser and Node.js environments. The vulnerability exists in the proxy bypass logic that evaluates whether a target hostname should skip proxy routing based on the no_proxy configuration parameter. The root cause is improper hostname normalization (CWE-918, Server-Side Request Forgery) where the shouldBypassProxy() function relies on literal string comparison rather than semantic equivalence. When a developer configures no_proxy=localhost to bypass the proxy for local connections, the function fails to recognize that 127.0.0.1 (IPv4 loopback) and [::1] (IPv6 loopback) are network-layer equivalents of localhost. This is particularly dangerous in Node.js environments where Axios is commonly used in server-side HTTP request libraries for microservice communication, API gateways, and backend integrations.

Know when Axios gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 6.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Red Hat 6.8 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

3
Patch released
Apr 27, 2026 - 19:52 nvd
Patch available
Patch available
Apr 24, 2026 - 20:17 EUVD
CVE Published
Apr 24, 2026 - 17:57 nvd
MEDIUM 6.8

DescriptionGitHub Advisory

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 273 npm packages depend on axios (189 direct, 84 indirect)

Ecosystem-wide dependent count for version 1.0.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

More in Axios

View all
CVE-2026-42043 CRITICAL POC
10.0 Apr 24

NO_PROXY protection bypass in Axios HTTP client (versions 1.0.0-1.15.0 and ≤0.31.0) lets an attacker who controls a requ

CVE-2026-42044 CRITICAL POC
9.1 Apr 24

JSON response tampering in the Axios HTTP client (versions 1.0.0 up to but not including 1.15.2) lets an attacker who ca

CVE-2026-67320 HIGH POC
8.3 Aug 01

Prototype pollution via the Node.js HTTP adapter in axios allows an attacker who controls `Object.prototype.proxy` to si

CVE-2025-27152 HIGH POC
7.7 Mar 07

axios is a promise based HTTP client for the browser and node.js. Rated high severity (CVSS 7.7), this vulnerability is

CVE-2025-58754 HIGH POC
7.5 Sep 12

Axios is a promise based HTTP client for the browser and Node.js. Rated high severity (CVSS 7.5), this vulnerability is

CVE-2026-25639 HIGH POC
7.5 Feb 09

Axios versions up to 0.30.3 is affected by improper check for unusual or exceptional conditions (CVSS 7.5).

CVE-2024-39338 HIGH POC
7.5 Aug 12

axios 1.7.2 allows SSRF via unexpected behavior where requests for path relative URLs get processed as protocol relative

CVE-2021-3749 HIGH POC
7.5 Aug 31

axios is vulnerable to Inefficient Regular Expression Complexity. Rated high severity (CVSS 7.5), this vulnerability is

CVE-2019-10742 HIGH POC
7.5 May 07

Axios up to and including 0.18.0 allows attackers to cause a denial of service (application crash) by continuing to acce

CVE-2026-42033 HIGH POC
7.4 Apr 24

Prototype pollution in Axios HTTP client versions before 1.15.1 and 0.31.1 enables silent interception and modification

CVE-2026-42039 MEDIUM POC
6.9 Apr 24

Denial of service in Axios HTTP client before versions 1.15.1 and 0.31.1 allows remote unauthenticated attackers to cras

CVE-2026-42041 MEDIUM POC
6.5 Apr 24

Prototype pollution in Axios library versions prior to 1.15.1 and 0.31.1 allows remote attackers to suppress HTTP error

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy