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-42041

CVE-2026-42041: Axios Auth Bypass Vulnerability

CVE-2026-42041 is an authentication bypass flaw in Axios HTTP client that exploits prototype pollution to suppress error responses. This article covers technical details, affected versions, impact, and mitigation.

Published: April 30, 2026

CVE-2026-42041 Overview

CVE-2026-42041 is a Prototype Pollution "Gadget" vulnerability in Axios, a popular promise-based HTTP client for browser and Node.js environments. This vulnerability allows attackers to leverage any existing Object.prototype pollution to silently suppress all HTTP error responses (401, 403, 500, etc.), causing them to be treated as successful responses. This effectively bypasses application-level authentication and error handling mechanisms.

Critical Impact

When exploited in conjunction with a prototype pollution vulnerability, this gadget allows attackers to completely bypass authentication mechanisms and error handling by making all HTTP status codes appear successful to the application.

Affected Products

  • Axios versions prior to 1.15.1
  • Axios versions prior to 0.31.1
  • Applications using Axios in Node.js environments

Discovery Timeline

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

Technical Details for CVE-2026-42041

Vulnerability Analysis

This vulnerability represents a Prototype Pollution Gadget attack vector within the Axios HTTP client library. Unlike a direct prototype pollution vulnerability, this is a "gadget" that amplifies the impact of any existing prototype pollution vulnerability in the application's dependency chain.

The vulnerability enables attackers to manipulate HTTP response handling at a fundamental level. When the Object prototype is polluted with a malicious validateStatus function, all HTTP responses—including authentication failures (401), authorization denials (403), and server errors (500)—are incorrectly treated as successful responses. This silent suppression of error states can lead to severe security bypasses, particularly in applications relying on HTTP status codes for authentication and authorization decisions.

Root Cause

The root cause lies in how Axios handles the validateStatus configuration property. This property uniquely uses the mergeDirectKeys merge strategy, which employs JavaScript's in operator to check for property existence. The in operator inherently traverses the prototype chain, meaning it will find properties defined on Object.prototype.

When an attacker pollutes Object.prototype.validateStatus with a function that returns true for all status codes (e.g., () => true), the polluted property is discovered during the merge process and applied to all Axios requests. This causes every HTTP response, regardless of its actual status code, to be treated as a successful response.

Attack Vector

The attack vector is network-based and requires the attacker to first establish a prototype pollution condition in the target application. This could be achieved through various means such as vulnerable dependencies, user-controlled JSON parsing, or other prototype pollution vulnerabilities in the application stack.

Once prototype pollution is achieved, the attacker pollutes Object.prototype.validateStatus with a function that always returns true. From that point forward, all Axios HTTP requests in the application will treat error responses as successful, potentially allowing:

  • Bypassing authentication checks that rely on 401 responses
  • Circumventing authorization controls expecting 403 responses
  • Ignoring server-side validation errors
  • Masking critical server errors that should halt processing

The vulnerability mechanism works as follows: When Axios merges configuration options, it uses the in operator to check if validateStatus exists. Since the in operator checks the entire prototype chain, it finds the polluted validateStatus on Object.prototype and uses it instead of the default validation logic. See the GitHub Security Advisory for complete technical details.

Detection Methods for CVE-2026-42041

Indicators of Compromise

  • Unexpected successful responses from API endpoints that should return errors
  • Authentication flows completing successfully without proper credentials
  • Application logs showing successful API calls where server-side logs indicate error responses
  • Absence of expected error handling code paths being executed

Detection Strategies

  • Monitor for discrepancies between server-side access logs (showing 401/403/500 responses) and client-side application behavior treating these as successful
  • Implement server-side logging and alerting that doesn't rely on client-side error handling
  • Use Software Composition Analysis (SCA) tools to identify vulnerable Axios versions in your dependency tree
  • Audit your application's dependencies for known prototype pollution vulnerabilities that could enable this gadget

Monitoring Recommendations

  • Implement backend instrumentation to track HTTP response codes independently of client-side handling
  • Set up alerts for unusual patterns of "successful" authentications from suspicious sources
  • Monitor for prototype pollution attempts in user-supplied JSON data
  • Review dependency audit reports for both Axios version compliance and prototype pollution vulnerabilities in other packages

How to Mitigate CVE-2026-42041

Immediate Actions Required

  • Upgrade Axios to version 1.15.1 or later for the 1.x branch
  • Upgrade Axios to version 0.31.1 or later for the 0.x branch
  • Audit your application's dependencies for prototype pollution vulnerabilities
  • Implement server-side validation that doesn't rely solely on client-side error handling

Patch Information

The vulnerability has been fixed in Axios versions 1.15.1 and 0.31.1. The patch modifies how the validateStatus configuration property is merged, preventing prototype chain traversal from affecting the validation behavior. For detailed information about the fix, refer to the GitHub Security Advisory.

Workarounds

  • Explicitly set validateStatus in all Axios request configurations to prevent prototype pollution from affecting validation
  • Implement Object.freeze on Object.prototype in controlled environments (note: this may break some libraries)
  • Use Object.create(null) for objects that process untrusted user input
  • Implement secondary server-side checks that don't rely on client-side HTTP status handling
bash
# Update Axios to patched version
npm update axios@1.15.1

# Or for yarn users
yarn upgrade axios@1.15.1

# Verify installed version
npm list axios

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechAxios

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-287
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42040: Axios Null Byte Encoding Vulnerability

  • CVE-2026-42042: Axios HTTP Client CSRF Vulnerability

  • CVE-2026-42043: Axios HTTP Client SSRF Vulnerability

  • CVE-2026-42044: Axios Privilege Escalation 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