CVE-2026-40961 Details
Description
A bug in the login redirect route in Apache Airflow allowed authenticated users to craft URLs that bypassed the `is_safe_url` check, enabling redirection from a trusted Airflow domain to an attacker-controlled origin. Users are advised to upgrade to `apache-airflow` 3.2.2 or later. 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.
A vulnerability in the login redirect route of Apache Airflow versions 3.0.0 prior to 3.2.2 allows authenticated users to create URLs that bypass the 'is_safe_url' check. This flaw enables redirection from a trusted Airflow domain to an attacker-controlled destination. As a defense-in-depth measure, deployment operators can place Airflow behind a reverse proxy that removes off-domain 'next=' query parameters before they reach the login endpoint.
Users are advised to upgrade to Apache Airflow version 3.2.2 or later. For additional defense, Airflow can be placed behind a reverse proxy that strips off-domain 'next=' query parameters before they reach the login endpoint.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2026/05/31/2 | CVE | Mailing ListThird Party Advisory |
| https://github.com/apache/airflow/pull/65557 | [email protected] | Issue TrackingPatch |
| https://lists.apache.org/thread/qmt8ksh7gty6b8hr9w294t94j36jdv1q | [email protected] | Mailing ListVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache airflow | >= 3.0.0, < 3.2.2 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 21, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 2, 2026 | Initial Analysis | [email protected] |
| Jun 2, 2026 | CVE Modified | CISA-ADP |
| Jun 1, 2026 | CVE Modified | CVE |
| Jun 1, 2026 | New CVE Received | [email protected] |