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-2024-39338

CVE-2024-39338: Axios SSRF Vulnerability

CVE-2024-39338 is an SSRF vulnerability in Axios 1.7.2 where path relative URLs are incorrectly processed as protocol relative URLs, enabling server-side request forgery attacks. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: May 15, 2026

CVE-2024-39338 Overview

CVE-2024-39338 is a Server-Side Request Forgery (SSRF) vulnerability in the axios HTTP client library version 1.7.2. The flaw allows attackers to redirect requests by exploiting unexpected URL parsing behavior. Path-relative URLs supplied to axios are processed as protocol-relative URLs. An attacker who controls the request path can force the library to send requests to an arbitrary host. The vulnerability is tracked under CWE-918: Server-Side Request Forgery and primarily impacts Node.js applications that pass user-controlled input into axios request paths.

Critical Impact

Remote attackers can coerce vulnerable axios clients to issue HTTP requests to attacker-controlled or internal hosts, exposing sensitive data and internal services.

Affected Products

  • axios 1.7.2 (Node.js)
  • Applications bundling axios 1.7.2 as a dependency
  • Server-side JavaScript projects using axios for outbound HTTP requests

Discovery Timeline

  • 2024-08-12 - CVE-2024-39338 published to NVD
  • 2024-08-23 - Last updated in NVD database

Technical Details for CVE-2024-39338

Vulnerability Analysis

The vulnerability resides in how axios 1.7.2 resolves request URLs on the Node.js adapter. When a developer issues a request with what appears to be a path-relative URL, axios interprets the input as a protocol-relative URL. Protocol-relative URLs begin with // and inherit the scheme from the parent context. The library follows the embedded host rather than appending the path to the configured baseURL. An attacker who can influence the path argument can therefore divert outbound requests to a host of their choosing. The result is a classic SSRF condition with high confidentiality impact and no required privileges or user interaction.

Root Cause

The root cause is improper URL normalization within the axios request building logic on the Node.js HTTP adapter. The library fails to distinguish between a path beginning with / and a network-path reference beginning with //. RFC 3986 treats //host/path as a network-path reference that overrides the base authority. Axios processes such input as a valid target rather than treating it as a relative path under baseURL.

Attack Vector

Exploitation requires an application that forwards user-controlled input into the axios request path while relying on a fixed baseURL for safety. An attacker submits input such as //attacker.example.com/resource where the application expects a path like /resource. The Node.js adapter then issues the outbound request to attacker.example.com instead of the trusted base host. This enables reconnaissance of internal services, theft of authorization headers attached by the client, and pivoting against cloud metadata endpoints. Refer to the Jeff Hacks CVE-2024-39338 Advisory for detailed reproduction notes.

Detection Methods for CVE-2024-39338

Indicators of Compromise

  • Outbound HTTP requests from application servers to unexpected external hosts that do not match the configured baseURL.
  • Application logs showing axios request paths beginning with // or containing embedded authority components.
  • Unexpected requests to cloud metadata endpoints such as 169.254.169.254 originating from Node.js services.
  • Authorization headers or session cookies appearing in traffic destined for untrusted hosts.

Detection Strategies

  • Inspect application source and dependency manifests for axios@1.7.2 using software composition analysis tooling.
  • Add server-side logging that records the fully resolved URL of every axios request before transmission.
  • Implement egress proxy rules that flag outbound requests whose host does not match an allowlist of approved destinations.
  • Review HTTP request paths reaching application endpoints for inputs starting with // or containing ://.

Monitoring Recommendations

  • Forward egress firewall and proxy logs to a centralized analytics platform for correlation with application activity.
  • Alert on outbound connections from backend services to internal RFC1918 ranges or cloud metadata IPs.
  • Track anomalous spikes in DNS lookups initiated by Node.js application processes.

How to Mitigate CVE-2024-39338

Immediate Actions Required

  • Upgrade axios to a fixed release later than 1.7.2 as listed in the GitHub Axios Release Notes.
  • Audit all code paths that pass user-supplied data into axios url or path arguments.
  • Validate that every request URL begins with a single / and reject inputs containing // or a scheme prefix.
  • Restrict outbound network egress from application servers to an explicit allowlist of trusted hosts.

Patch Information

The axios maintainers addressed the SSRF behavior in releases following 1.7.2. Consult the GitHub Axios Release Notes for the specific fixed version and changelog entries. Update package manifests with npm install axios@latest or pin to a known-good version, then rebuild and redeploy affected services.

Workarounds

  • Normalize incoming path parameters server-side by stripping leading slashes before concatenating them with baseURL.
  • Use the WHATWG URL constructor to validate that the resolved request target matches the expected origin.
  • Apply an outbound proxy or service mesh policy that blocks requests to hosts outside the approved list.
bash
# Configuration example
npm install axios@latest
npm ls axios

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 Probability2.14%

  • 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
  • Technical References
  • GitHub Axios Release Notes

  • Jeff Hacks CVE-2024-39338 Advisory
  • Related CVEs
  • CVE-2026-42043: Axios HTTP Client SSRF Vulnerability

  • CVE-2026-42038: Axios SSRF Vulnerability

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

  • CVE-2025-27152: Axios HTTP Client SSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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