CVE-2026-40961: Apache Airflow · Authenticated users can bypass the `is_safe_url` check
Affects apache-airflowSource GCVE Database
Not known to be exploited · CVSS 7.2 High : upgrade to 3.2.2 soon.
Data as of 3 Nov 2026, 00:29 UTC
- Patch
- Available – fixed in 3.2.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 1 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Nov 2026.
What to do
Upgrade apache-airflow to 3.2.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIapache-airflow | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Apache Airflow to version 3.2.2 or later, where this vulnerability is fixed. As a defense-in-depth measure, deploy Airflow behind a reverse proxy configured to strip off-domain `next=` query parameters before they reach the login endpoint. No other specific mitigations are indicated by the vendor advisory.
Description
Apache Airflow versions from 3.0.0b3 up to but not including 3.2.2 contain a vulnerability in the login redirect route that allows authenticated users to bypass the `is_safe_url` check. This flaw enables redirection from a trusted Airflow domain to an attacker-controlled origin. The issue is fixed in version 3.2.2. Operators are advised to upgrade to 3.2.2 or later. As an additional mitigation, deploying Airflow behind a reverse proxy that removes off-domain `next=` query parameters before they reach the login endpoint can reduce risk.
References
- nvd.nist.gov/vuln/detail/CVE-2026-40961 (opens in a new tab)
- github.com/apache/airflow/pull/65557 (opens in a new tab)
- github.com/apache/airflow/commit/555f35576e3143dec65a7fb9acd95891841b45f2 (opens in a new tab)
- github.com/apache/airflow/commit/bfd1881fa0cb1193f49dbac72d7462e66aaf8f25 (opens in a new tab)
- github.com/apache/airflow (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-2345.yaml (opens in a new tab)
- lists.apache.org/thread/qmt8ksh7gty6b8hr9w294t94j36jdv1q (opens in a new tab)
- pypi.org/project/apache-airflow (opens in a new tab)
- openwall.com/lists/oss-security/2026/05/31/2 (opens in a new tab)