Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-40175

CVE-2026-40175: Axios HTTP Client RCE Vulnerability

CVE-2026-40175 is a remote code execution flaw in Axios HTTP client that exploits prototype pollution to enable RCE or cloud compromise. This article covers technical details, affected versions, impact, and mitigation.

Published: April 17, 2026

CVE-2026-40175 Overview

CVE-2026-40175 affects Axios, a widely-used promise-based HTTP client for browser and Node.js environments. This vulnerability enables a "Gadget" attack chain that allows Prototype Pollution in any third-party dependency to be escalated into Remote Code Execution (RCE) or Full Cloud Compromise via AWS IMDSv2 bypass. The vulnerability stems from improper header value sanitization (CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers), allowing attackers to inject malicious headers that can exfiltrate cloud metadata credentials.

Critical Impact

Attackers can leverage Prototype Pollution in any third-party dependency to escalate to Remote Code Execution or AWS cloud compromise through unrestricted metadata exfiltration via header injection.

Affected Products

  • Axios versions prior to 1.15.0
  • Axios versions prior to 0.31.0

Discovery Timeline

  • April 10, 2026 - CVE-2026-40175 published to NVD
  • April 16, 2026 - Last updated in NVD database

Technical Details for CVE-2026-40175

Vulnerability Analysis

This vulnerability represents a sophisticated attack chain that combines Prototype Pollution with HTTP Header Injection to achieve Remote Code Execution or cloud credential theft. The core issue lies in Axios's failure to properly validate and sanitize header values, specifically allowing CRLF (Carriage Return Line Feed) sequences to be injected into HTTP headers.

When an attacker can pollute the JavaScript prototype chain through a vulnerable third-party dependency, they can inject malicious properties that Axios processes as HTTP headers. These injected headers can contain CRLF sequences that enable HTTP Response Splitting attacks or, more critically, can be used to bypass AWS IMDSv2 protections and exfiltrate cloud instance metadata credentials.

The attack is particularly dangerous in cloud-hosted Node.js applications where AWS Instance Metadata Service (IMDS) credentials could be stolen, potentially leading to full cloud account compromise.

Root Cause

The root cause is the absence of proper validation for header values containing newline characters (\r and \n). The AxiosHeaders class did not verify that header values are free from CRLF sequences before including them in HTTP requests. This allowed attackers who could influence header values through Prototype Pollution to inject arbitrary headers or split HTTP responses.

The fix introduces a validation function that explicitly checks for and rejects any header values containing carriage return or line feed characters:

javascript
const isValidHeaderValue = (value) => !/[\r\n]/.test(value);

function assertValidHeaderValue(value, header) {
  if (value === false || value == null) {
    return;
  }

  if (utils.isArray(value)) {
    value.forEach((v) => assertValidHeaderValue(v, header));
    return;
  }

  if (!isValidHeaderValue(String(value))) {
    throw new Error(`Invalid character in header content ["${header}"]`);
  }
}

Source: GitHub Commit

Attack Vector

The attack vector is network-based and requires an attacker to first exploit a Prototype Pollution vulnerability in any dependency used by the target application. Once the prototype chain is polluted, the attacker can inject malicious header values that Axios will include in outgoing HTTP requests.

In cloud environments, particularly AWS, this can be exploited to:

  1. Inject headers that bypass IMDSv2 token requirements
  2. Make requests to the metadata service endpoint (169.254.169.254)
  3. Exfiltrate IAM role credentials
  4. Use stolen credentials for lateral movement or privilege escalation

The patch also includes improvements to stack trace handling to prevent exploitation through the stack.replace() method:

javascript
const stack = (() => {
  if (!dummy.stack) {
    return '';
  }

  const firstNewlineIndex = dummy.stack.indexOf('\n');

  return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
})();

Source: GitHub Commit

Detection Methods for CVE-2026-40175

Indicators of Compromise

  • Unusual HTTP requests to cloud metadata endpoints (169.254.169.254) from application servers
  • HTTP headers containing CRLF sequences (%0d%0a or \r\n) in application logs
  • Unexpected outbound connections from Node.js applications to internal network resources
  • Evidence of Prototype Pollution attempts targeting __proto__, constructor, or prototype properties

Detection Strategies

  • Monitor network traffic for requests to AWS metadata service endpoints from application servers that should not require metadata access
  • Implement Web Application Firewall (WAF) rules to detect CRLF injection attempts in headers
  • Use Static Application Security Testing (SAST) tools to identify vulnerable Axios versions in package dependencies
  • Deploy runtime application self-protection (RASP) solutions to detect Prototype Pollution attempts

Monitoring Recommendations

  • Enable detailed logging for all outbound HTTP requests from Node.js applications
  • Configure alerts for any requests to cloud provider metadata endpoints (169.254.169.254, fd00:ec2::254)
  • Monitor npm audit reports and dependency scanning tools for known vulnerable package versions
  • Implement Software Composition Analysis (SCA) to track Axios versions across all applications

How to Mitigate CVE-2026-40175

Immediate Actions Required

  • Update Axios to version 1.15.0 or later for applications using the 1.x branch
  • Update Axios to version 0.31.0 or later for applications using the 0.x branch
  • Audit all Node.js applications for Prototype Pollution vulnerabilities in third-party dependencies
  • Review and restrict network access from application servers to cloud metadata endpoints where not required

Patch Information

The vulnerability has been addressed in Axios versions 1.15.0 and 0.31.0. The patches introduce proper header value sanitization through the sanitizeHeaderValue helper and implement validation that rejects any header values containing CRLF sequences.

Key commits addressing this vulnerability:

  • Commit 03cdfc9 - Backport fixes to 0.x branch
  • Commit 3631854 - Primary fix for header injection chain

For additional technical details, see the GitHub Security Advisory GHSA-fvcv-3m26-pcqx.

Workarounds

  • If immediate patching is not possible, implement a custom HTTP interceptor to sanitize all header values before requests are sent
  • Use network segmentation to block application servers from accessing cloud metadata endpoints
  • Implement IMDSv2 hop limit restrictions on EC2 instances to prevent container breakout scenarios
  • Deploy a proxy that validates and sanitizes HTTP headers before forwarding requests
bash
# Update Axios in your Node.js project
npm update axios@latest

# Verify installed version
npm list axios

# For projects using yarn
yarn upgrade axios@^1.15.0

# Audit for vulnerabilities
npm audit

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAxios

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.53%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-113
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Pull Request #10660

  • GitHub Pull Request #10688

  • GitHub Release v0.31.0

  • GitHub Release v1.15.0

  • GitHub Security Advisory GHSA-fvcv-3m26-pcqx

  • GitHub Pull Request Comment
  • Related CVEs
  • CVE-2025-62718: Axios NO_PROXY Bypass SSRF Vulnerability

  • CVE-2026-39865: Axios HTTP/2 DoS Vulnerability

  • CVE-2026-25639: Axios HTTP Client DoS Vulnerability

  • CVE-2025-58754: Axios Axios DoS 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