The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42038

CVE-2026-42038: Axios SSRF Vulnerability

CVE-2026-42038 is a server-side request forgery flaw in Axios that bypasses no_proxy hostname normalization. Requests to 127.0.0.1 and [::1] incorrectly route through proxies. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 30, 2026

CVE-2026-42038 Overview

CVE-2026-42038 is a Server-Side Request Forgery (SSRF) vulnerability in Axios, a popular promise-based HTTP client for browser and Node.js environments. The vulnerability exists in versions prior to 1.15.1 and 0.31.1 where the 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 as intended. The shouldBypassProxy() function performs pure string matching without resolving IP aliases or loopback equivalents.

Critical Impact

Sensitive internal requests intended to bypass the proxy may be inadvertently routed through an external proxy server, potentially exposing confidential data to untrusted network intermediaries.

Affected Products

  • Axios versions prior to 1.15.1 (1.x branch)
  • Axios versions prior to 0.31.1 (0.x branch)
  • Applications using Axios with no_proxy configuration for localhost

Discovery Timeline

  • 2026-04-24 - CVE CVE-2026-42038 published to NVD
  • 2026-04-27 - Last updated in NVD database

Technical Details for CVE-2026-42038

Vulnerability Analysis

This vulnerability is classified as CWE-918 (Server-Side Request Forgery). The core issue stems from how Axios handles proxy bypass logic when the no_proxy environment variable or configuration option is set. The shouldBypassProxy() function relies on simple string comparison to determine whether a request should bypass the configured proxy.

When a developer sets no_proxy=localhost to prevent local service calls from being routed through a proxy, the implementation fails to recognize that 127.0.0.1 (IPv4 loopback) and [::1] (IPv6 loopback) are functionally equivalent to localhost. This incomplete hostname normalization means that while requests to localhost bypass the proxy correctly, requests to these IP-based loopback addresses are still sent through the proxy server.

The vulnerability enables network-based attacks where an attacker with control or visibility over the proxy server can intercept requests that were intended to remain local. This is particularly concerning for applications that communicate with local services containing sensitive data or authentication tokens.

Root Cause

The root cause is the incomplete implementation of hostname normalization in the proxy bypass logic. The shouldBypassProxy() function performs direct string matching against the no_proxy list without considering that multiple hostnames and IP addresses can resolve to the same network destination. Specifically, the function does not implement RFC-compliant loopback address recognition or DNS resolution to verify address equivalence.

Attack Vector

The attack vector is network-based and requires no privileges or user interaction. An attacker positioned as a proxy server (legitimately configured or through a man-in-the-middle scenario) can intercept requests that the application developer intended to keep local. This occurs when:

  1. An application configures no_proxy=localhost to protect local service communications
  2. Internal code or dependencies make HTTP requests using IP addresses (127.0.0.1 or [::1]) instead of the localhost hostname
  3. These requests are incorrectly routed through the proxy where they can be logged, modified, or redirected

The vulnerability manifests in the proxy bypass decision logic. When Axios evaluates whether to route a request through the configured proxy, it compares the request hostname against entries in the no_proxy list using exact string matching. This means localhost, 127.0.0.1, and [::1] are treated as distinct hostnames despite all representing the local loopback interface. See the GitHub Security Advisory for detailed technical information.

Detection Methods for CVE-2026-42038

Indicators of Compromise

  • Unexpected outbound traffic to proxy servers originating from localhost-bound requests
  • Proxy server logs showing requests destined for 127.0.0.1 or [::1] addresses
  • Network monitoring alerts for internal service calls traversing external network segments
  • Authentication token exposure in proxy access logs for local service endpoints

Detection Strategies

  • Audit application dependencies for Axios versions below 1.15.1 (1.x) or 0.31.1 (0.x)
  • Review network traffic patterns for proxy-routed requests to loopback addresses
  • Implement dependency scanning tools to flag vulnerable Axios versions in CI/CD pipelines
  • Monitor proxy logs for unexpected local address requests that should bypass proxy routing

Monitoring Recommendations

  • Deploy network monitoring to detect requests to loopback addresses traversing proxy infrastructure
  • Configure SIEM rules to alert on localhost/loopback traffic appearing in proxy access logs
  • Implement application-level logging to track proxy bypass decisions for auditing
  • Set up automated dependency vulnerability scanning with alerts for this CVE

How to Mitigate CVE-2026-42038

Immediate Actions Required

  • Upgrade Axios to version 1.15.1 or later for 1.x branch users
  • Upgrade Axios to version 0.31.1 or later for 0.x branch users
  • Audit no_proxy configurations to include all loopback address variants
  • Review application code for hardcoded IP-based localhost references

Patch Information

The vulnerability is fixed in Axios versions 1.15.1 and 0.31.1. The patch improves the shouldBypassProxy() function to properly handle loopback address equivalence. Detailed information about the fix is available in the GitHub Security Advisory.

Workarounds

  • Expand no_proxy configuration to include all loopback variants: no_proxy=localhost,127.0.0.1,::1,[::1]
  • Refactor application code to consistently use localhost hostname instead of IP addresses for local service calls
  • Implement network-level controls to prevent proxy routing of loopback-destined traffic
  • Consider disabling proxy configuration entirely for applications that only communicate locally
bash
# Configuration example
# Temporary workaround: Expand no_proxy to include all loopback variants
export no_proxy="localhost,127.0.0.1,::1,[::1]"

# Verify Axios version and upgrade if necessary
npm list axios
npm update axios@1.15.1

# Or for 0.x branch users
npm update axios@0.31.1

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechAxios

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42043: Axios HTTP Client SSRF Vulnerability

  • CVE-2025-62718: Axios NO_PROXY Bypass SSRF Vulnerability

  • CVE-2025-27152: Axios HTTP Client SSRF Vulnerability

  • CVE-2020-28168: Axios Axios SSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English