A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    • 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
    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
    Identity Security
    • Singularity Identity
      Identity Threat Detection and Response
  • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-57965

CVE-2024-57965: Axios Origin Validation Vulnerability

CVE-2024-57965 is an origin validation flaw in Axios affecting versions before 1.7.8. The issue involves improper origin determination logic that could lead to security risks. This article covers technical details, affected versions, impact assessment, and available mitigations.

Updated: January 22, 2026

CVE-2024-57965 Overview

CVE-2024-57965 is a vulnerability affecting the popular Axios HTTP client library for Node.js. The issue resides in lib/helpers/isURLSameOrigin.js, where the code does not properly use a URL object when determining an origin. Additionally, the affected code contains a potentially unwanted setAttribute('href',href) call that could be leveraged by attackers. This vulnerability is categorized as CWE-346: Origin Validation Error.

It is worth noting that some security researchers have expressed the opinion that the code change primarily addresses a warning message from a Static Application Security Testing (SAST) tool rather than fixing a direct exploitable vulnerability. Organizations should evaluate the risk based on their specific deployment context.

Critical Impact

This vulnerability in Axios's origin validation mechanism could potentially allow attackers to bypass same-origin policy checks, leading to unauthorized cross-origin requests in applications that rely on this validation for security controls.

Affected Products

  • Axios versions prior to 1.7.8 (Node.js package)
  • Applications using vulnerable Axios versions for HTTP requests
  • Web applications relying on Axios's origin validation functionality

Discovery Timeline

  • 2025-01-29 - CVE-2024-57965 published to NVD
  • 2025-09-19 - Last updated in NVD database

Technical Details for CVE-2024-57965

Vulnerability Analysis

The vulnerability exists in the isURLSameOrigin.js helper module within Axios. This module is responsible for determining whether a given URL shares the same origin as the current document, which is a critical security check in browser environments to prevent cross-origin attacks.

The flawed implementation fails to properly utilize the URL object API when parsing and comparing origins. Instead of leveraging the browser's native URL parsing capabilities, the code uses a DOM element-based approach with setAttribute('href', href). This technique, while functional, can lead to inconsistent behavior and potential security bypasses depending on how different browsers handle the attribute assignment.

The CWE-346 classification indicates an Origin Validation Error, which means the application fails to properly verify that the origin of a request or data matches expected origins. In the context of HTTP clients like Axios, improper origin validation can allow malicious actors to craft requests that bypass intended security restrictions.

Root Cause

The root cause stems from the use of a deprecated or non-standard method for URL parsing in the isURLSameOrigin.js module. Rather than instantiating a proper URL object to parse and extract origin components (protocol, hostname, port), the code relies on setting the href attribute on an anchor element. This approach has known inconsistencies across different browser implementations and can lead to incorrect origin determinations.

Attack Vector

The attack vector for this vulnerability is network-based, requiring no privileges or user interaction. An attacker could potentially exploit this vulnerability by:

  1. Crafting malicious URLs that exploit inconsistencies in the origin parsing logic
  2. Tricking the Axios library into believing a cross-origin request is same-origin
  3. Bypassing CORS-related security controls in applications that depend on Axios's origin checking

The vulnerability could be leveraged in scenarios where web applications use Axios's internal origin validation as part of their security architecture, potentially allowing unauthorized data access or request forgery.

Detection Methods for CVE-2024-57965

Indicators of Compromise

  • Unexpected cross-origin HTTP requests originating from applications using Axios
  • Anomalous network traffic patterns suggesting CORS bypass attempts
  • Application logs showing requests to origins that should have been blocked

Detection Strategies

  • Audit package.json and package-lock.json files for Axios versions below 1.7.8
  • Use Software Composition Analysis (SCA) tools to identify vulnerable Axios dependencies
  • Review npm audit results for known vulnerability alerts related to Axios
  • Implement network monitoring to detect unusual cross-origin request patterns

Monitoring Recommendations

  • Enable verbose logging for HTTP requests in applications using Axios
  • Monitor for SAST/DAST tool alerts flagging the isURLSameOrigin.js module
  • Track dependency updates and security advisories from the Axios project on GitHub

How to Mitigate CVE-2024-57965

Immediate Actions Required

  • Upgrade Axios to version 1.7.8 or later immediately
  • Run npm audit or equivalent package manager security scans to identify vulnerable installations
  • Review application code to assess reliance on Axios's origin validation functionality
  • Consider implementing additional server-side origin validation as defense-in-depth

Patch Information

The Axios development team has addressed this vulnerability in version 1.7.8. The fix involves properly utilizing the URL object for origin determination rather than relying on the setAttribute approach. Technical details of the patch can be found in the GitHub Pull Request #6714 and the commit reference. The official release is available at GitHub Release v1.7.8.

Workarounds

  • Implement server-side CORS validation as the primary security control rather than relying on client-side Axios checks
  • Use Content Security Policy (CSP) headers to restrict allowed origins at the browser level
  • Audit and restrict outbound network requests from the application layer
  • Consider using alternative HTTP clients if immediate upgrade is not possible
bash
# Upgrade Axios to patched version
npm update axios@latest

# Or specify the minimum safe version
npm install axios@">=1.7.8"

# 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
  • TypeOther

  • Vendor/TechAxios

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-346
  • Technical References
  • GitHub Issue #6351

  • GitHub Release v1.7.8
  • Vendor Resources
  • GitHub Commit Reference

  • GitHub Pull Request #6714
  • Related CVEs
  • CVE-2025-27152

  • CVE-2024-39338
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
  • English
  • 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