A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-40961

CVE-2026-40961: Apache Airflow Auth Bypass Vulnerability

CVE-2026-40961 is an authentication bypass flaw in Apache Airflow that allows attackers to redirect users to malicious domains. This article covers the technical details, affected versions, and mitigation strategies.

Published: June 4, 2026

CVE-2026-40961 Overview

CVE-2026-40961 is an open redirect vulnerability in Apache Airflow's login flow. The login redirect route fails to properly validate the next= query parameter through the is_safe_url check. Authenticated users can craft URLs that bypass this check and redirect victims from the trusted Airflow domain to an attacker-controlled origin. The flaw maps to CWE-601: URL Redirection to Untrusted Site and enables phishing and credential theft campaigns that leverage the legitimacy of an organization's Airflow domain. Apache fixed the issue in apache-airflow 3.2.2.

Critical Impact

Attackers can abuse the trusted Airflow domain to redirect users to malicious sites, facilitating phishing, session theft, and downstream compromise of authenticated workflows.

Affected Products

  • Apache Airflow versions prior to 3.2.2
  • Deployments exposing the login endpoint to authenticated users
  • Airflow instances without an upstream reverse proxy sanitizing redirect parameters

Discovery Timeline

  • 2026-06-01 - CVE-2026-40961 published to NVD
  • 2026-06-02 - Last updated in NVD database

Technical Details for CVE-2026-40961

Vulnerability Analysis

Apache Airflow's login route accepts a next= query parameter to send users to their originally requested page after authentication. The route invokes an is_safe_url helper that should reject off-domain destinations. A parsing weakness in this helper allows specially crafted URL strings to evade the check while still being accepted by the browser as an absolute URL pointing to an external host. After login, the application issues an HTTP redirect to the attacker-supplied origin.

The vulnerability is network-reachable and requires no privileges, since the login endpoint is reachable before successful authentication. The downstream impact is limited to integrity and confidentiality at low levels — the application itself is not directly compromised, but the trusted domain becomes a phishing vehicle.

Root Cause

The root cause is incomplete URL validation in the is_safe_url function used by the login redirect handler. The parser does not correctly normalize edge cases such as backslash-prefixed paths, protocol-relative URLs, or userinfo-embedded hosts. These inputs serialize to absolute external URLs at the browser layer while appearing to pass the internal same-origin check.

Attack Vector

An attacker constructs a URL of the form https://airflow.victim.tld/login?next=<crafted-url> and delivers it through email, chat, or a malicious site. The victim, who trusts the Airflow domain, clicks the link and authenticates. Airflow then redirects the browser to the attacker-controlled host, where credential harvesting, OAuth token theft, or malware delivery can occur. See the Apache Airflow pull request 65557 and the Apache mailing list disclosure for technical details on the fix.

Detection Methods for CVE-2026-40961

Indicators of Compromise

  • Login requests to /login containing next= parameters whose decoded value resolves to an external host
  • HTTP 302 responses from Airflow with Location headers pointing to non-Airflow domains
  • Outbound user traffic from authenticated Airflow sessions to recently registered or low-reputation domains
  • Web server access logs showing unusually long, percent-encoded, or backslash-laden next= values

Detection Strategies

  • Parse Airflow web server logs and alert on next= query parameters whose host component differs from the canonical Airflow FQDN
  • Correlate login redirect responses with subsequent DNS lookups and TLS SNI values to identify off-domain redirects
  • Hunt for phishing kits referencing the Airflow domain in HTTP Referer headers in proxy or SWG telemetry

Monitoring Recommendations

  • Enable verbose access logging on the Airflow web server and forward to a centralized log platform
  • Monitor Airflow audit logs for authentication events immediately followed by external navigation
  • Track newly observed external domains appearing in the Location response header of /login responses

How to Mitigate CVE-2026-40961

Immediate Actions Required

  • Upgrade apache-airflow to version 3.2.2 or later on all environments
  • Inventory all Airflow deployments including managed services and container images to confirm patch coverage
  • Review recent web server logs for suspicious next= parameter values and notify potentially phished users
  • Rotate any credentials or API tokens entered after clicking suspicious Airflow login links

Patch Information

Apache released the fix in apache-airflow 3.2.2. The patch hardens the is_safe_url validation in the login redirect handler. Refer to Apache Airflow PR #65557 and the Apache security advisory for change details, and the Openwall OSS-Security post for the public disclosure.

Workarounds

  • Place Airflow behind a reverse proxy (NGINX, HAProxy, Envoy) that strips or rewrites off-domain next= query parameters before requests reach the login endpoint
  • Enforce a strict allowlist of redirect targets at the proxy or WAF layer, rejecting any next= value whose host does not match the Airflow FQDN
  • Add a Content Security Policy and clear Referrer-Policy to limit phishing leverage if redirection still occurs
bash
# NGINX example: strip next= parameter on /login requests
location = /login {
    if ($arg_next ~* "^(https?:|//|\\\\)") {
        return 302 /login;
    }
    proxy_pass http://airflow_upstream;
}

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechApache Airflow

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-601
  • Technical References
  • Openwall OSS Security Post
  • Vendor Resources
  • GitHub Pull Request

  • Apache Mailing List Thread
  • Related CVEs
  • CVE-2026-48726: Apache Airflow Auth Bypass Vulnerability

  • CVE-2026-49298: Apache Airflow Auth Bypass Vulnerability

  • CVE-2026-41014: Apache Airflow Auth Bypass Vulnerability

  • CVE-2026-41084: Apache Airflow Auth Bypass 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