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
    • 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-2023-45857

CVE-2023-45857: Axios Information Disclosure Vulnerability

CVE-2023-45857 is an information disclosure vulnerability in Axios 1.5.1 that exposes XSRF-TOKEN cookies in HTTP headers to any host. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 11, 2026

CVE-2023-45857 Overview

An information disclosure vulnerability was discovered in Axios version 1.5.1 that inadvertently reveals the confidential XSRF-TOKEN stored in cookies by including it in the HTTP header X-XSRF-TOKEN for every request made to any host. This behavior allows attackers to view sensitive information that should only be shared with the intended origin server, potentially enabling cross-site request forgery attacks or session hijacking.

Critical Impact

The XSRF-TOKEN is leaked to any external host during cross-origin requests, potentially exposing sensitive session data and enabling attackers to bypass CSRF protections.

Affected Products

  • Axios 1.5.1 for Node.js
  • Applications and services utilizing the affected Axios library version
  • NetApp products incorporating vulnerable Axios versions (see NetApp Security Advisory NTAP-20240621-0006)

Discovery Timeline

  • 2023-11-08 - CVE-2023-45857 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-45857

Vulnerability Analysis

This vulnerability is classified under CWE-352 (Cross-Site Request Forgery). The core issue lies in how Axios handles XSRF tokens during HTTP requests. The library is designed to read the XSRF-TOKEN cookie and automatically include it as the X-XSRF-TOKEN header in requests. However, in the affected version, this behavior occurs indiscriminately for all requests regardless of the destination host.

When a web application makes requests to third-party domains or external APIs using Axios, the XSRF token—which is intended only for the original application's backend—is inadvertently transmitted to these external hosts. This creates a significant information disclosure vector where sensitive security tokens become visible to unintended parties.

Root Cause

The root cause stems from improper origin validation in the XSRF token handling logic. The Axios library fails to properly check whether the request destination matches the origin from which the XSRF-TOKEN cookie was set. This lack of same-origin enforcement means the protective token is broadcast to all hosts contacted by the application, violating the fundamental security principle that CSRF tokens should only be shared with their originating server.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker can exploit this vulnerability by setting up a malicious server and enticing a victim to visit a page that triggers Axios requests to the attacker's domain. When the victim's browser makes these requests through the vulnerable Axios library, the attacker's server receives the XSRF-TOKEN header, capturing the sensitive token.

This leaked token could then be used to:

  • Bypass CSRF protections on the legitimate application
  • Potentially hijack user sessions if the token is correlated with session management
  • Gain insight into the application's security implementation

Technical details and community discussion regarding this vulnerability can be found in the GitHub Issue #6006.

Detection Methods for CVE-2023-45857

Indicators of Compromise

  • Unexpected X-XSRF-TOKEN headers appearing in outbound requests to third-party domains
  • XSRF tokens being logged by external services in request headers
  • Anomalous cross-origin requests containing sensitive authentication headers
  • Presence of Axios 1.5.1 in application dependencies (package.json or package-lock.json)

Detection Strategies

  • Audit application dependencies for Axios version 1.5.1 using npm audit or equivalent package scanning tools
  • Monitor network traffic for outbound requests containing X-XSRF-TOKEN headers to external domains
  • Implement Software Composition Analysis (SCA) tools to identify vulnerable library versions in your codebase
  • Review application logs for patterns indicating token leakage to unauthorized endpoints

Monitoring Recommendations

  • Configure web application firewalls (WAF) to flag requests with XSRF tokens being sent to non-whitelisted domains
  • Implement Content Security Policy (CSP) reporting to detect unexpected outbound connections
  • Enable detailed logging for HTTP client libraries to capture header information in requests
  • Set up alerting for dependency vulnerability scanners to notify when vulnerable Axios versions are detected

How to Mitigate CVE-2023-45857

Immediate Actions Required

  • Update Axios to a patched version that properly restricts XSRF-TOKEN header transmission to same-origin requests
  • Audit your application's use of Axios to identify all instances where cross-origin requests may leak tokens
  • Consider implementing request interceptors to strip sensitive headers from cross-origin requests as a temporary measure
  • Review and rotate XSRF tokens for any applications that may have been exposed

Patch Information

The vulnerability was reported and tracked in the Axios GitHub repository. Organizations should upgrade to a fixed version of Axios that addresses the improper XSRF token handling. Check the official Axios releases and changelog for the specific version containing the security fix. NetApp customers should also consult the NetApp Security Advisory for product-specific guidance.

Workarounds

  • Implement a custom request interceptor to conditionally remove the X-XSRF-TOKEN header for cross-origin requests
  • Configure Axios instances with withCredentials: false for requests to external domains where CSRF protection is not needed
  • Use separate Axios instances for same-origin and cross-origin requests with different configurations
  • Manually manage XSRF token headers instead of relying on Axios's automatic behavior
bash
# Check for vulnerable Axios version in your project
npm list axios | grep "1.5.1"

# Update Axios to latest version
npm update axios

# Audit dependencies for known vulnerabilities
npm audit

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechAxios

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.13%

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

  • NetApp Security Advisory NTAP-20240621-0006
  • Related CVEs
  • CVE-2026-25639: Axios HTTP Client DoS Vulnerability

  • CVE-2025-58754: Axios Axios DoS Vulnerability

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

  • CVE-2024-57965: Axios Origin Validation Vulnerability
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