CVE-2026-40961: Apache Airflow: Authenticated users can bypass the `is_safe_url` check
A bug in the login redirect route in Apache Airflow allowed authenticated users to craft URLs that bypassed the issafeurl 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.
Published Jun 1, 2026 · Updated Nov 2, 2026
Affected packages
apache-airflow
- Ecosystem
- PyPI
- Affected
- >= 3.0.0b3, < 3.2.2
- Fixed in
- 3.2.2
- Check
pip show apache-airflow
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to maheshwarivijaykumar.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-40961
- https://github.com/apache/airflow/pull/65557
- https://lists.apache.org/thread/qmt8ksh7gty6b8hr9w294t94j36jdv1q
- https://github.com/apache/airflow/commit/555f35576e3143dec65a7fb9acd95891841b45f2
- https://github.com/apache/airflow/commit/bfd1881fa0cb1193f49dbac72d7462e66aaf8f25
- https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-2345.yaml
- https://pypi.org/project/apache-airflow
- https://github.com/advisories/GHSA-6hcw-qqr8-pjj8
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-54183
Apache Airflow Variables UI fails to mask sensitive values in deeply nested iterables
medium4.3Aug 12, 2026CVE-2026-58076
Apache Airflow exception-node deserialization permits arbitrary callable execution
high8.8Aug 12, 2026CVE-2026-59242
Apache Airflow XCom API permits unsafe deserialization through JSON string literals
medium5.4Aug 12, 2026CVE-2026-59244
Apache Airflow exposes dict-valued var.json secrets in Rendered Templates
medium6.5Aug 12, 2026CVE-2026-65017
Apache Airflow Config API exposes team-scoped sensitive configuration values
medium6.5Aug 12, 2026CVE-2026-67260
Apache Airflow scheduler unsafely deserializes human-in-the-loop task next_kwargs
high7.3Aug 12, 2026
