CVE-2026-40961: Apache Airflow Authenticated User URL Bypass Vulnerability

apache-airflow Updated 18 Jul 2026

Summary

13/07/2026
Yes i
High
7.2

CVE-2026-40961: Apache Airflow: Authenticated users can bypass the is_safe_url check. Affects apache-airflow versions < 3.2.2. Fixed in 3.2.2. How to fix ↓

Also tracked for

The same CVE-2026-40961 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Airflow is an open-source platform designed to programmatically author, schedule, and monitor workflows. It is widely used for orchestrating complex data pipelines and managing workflows in data engineering. The platform supports various integrations and is known for its flexibility and scalability. However, it has a vulnerability that allows authenticated users to bypass security checks, potentially leading to unauthorized access to sensitive resources.

Vulnerability Detail

A bug in the login redirect route of Apache Airflow allows authenticated users to craft URLs that circumvent the 'is_safe_url' check. This vulnerability can lead to redirection from a trusted Airflow domain to an attacker-controlled origin, posing a significant security risk. The flaw originates from improper validation of redirect URLs, which could be exploited to conduct phishing attacks or redirect users to malicious sites.

How To Fix

Latest published version: 3.3.2 as of 22 Oct 2026

pip install --upgrade "apache-airflow==3.3.2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.2.2

This is the first release that contains the fix.

pip install --upgrade "apache-airflow==3.2.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a defense-in-depth mitigation, deployment operators can place Airflow behind a reverse proxy that strips off-domain 'next=' query parameters before they reach the login endpoint. This can be configured in the reverse proxy settings to enhance security.

Conclusion

CVE-2026-40961 is a significant vulnerability in Apache Airflow that allows authenticated users to bypass security checks, leading to potential redirection to malicious sites. Users are strongly advised to upgrade to version 3.2.2 or later to mitigate this risk. Implementing a reverse proxy can also serve as an effective workaround.

See every vulnerability recorded for apache-airflow →

Share this vulnerability

FAQ

CVE-2026-40961 is a vulnerability in Apache Airflow that allows authenticated users to bypass the 'is_safe_url' check, potentially leading to redirection to malicious sites.

If you are using a version prior to 3.2.2, your installation is vulnerable to CVE-2026-40961. You can check your version by running 'apache-airflow version' in your terminal.

The vulnerability could lead to phishing attacks, unauthorized access to sensitive data, and exploitation of users through malicious redirects.

Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

The CVSS score for CVE-2026-40961 is 7.2, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for apache-airflow.

How To Fix

Latest published version: 3.3.2 as of 22 Oct 2026

pip install --upgrade "apache-airflow==3.3.2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.2.2

This is the first release that contains the fix.

pip install --upgrade "apache-airflow==3.2.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback