CVE-2026-40961

Apache Airflow: Open Redirect Bypass Vulnerability

Published Jun 1, 2026 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A flaw in the login redirect logic of Apache Airflow allows authenticated users to craft URLs that bypass the is_safe_url check, resulting in an open redirect from a trusted Airflow domain to an attacker-controlled origin. This can potentially be leveraged for malicious activities such as phishing or credential theft.

Affected Systems

The vulnerability affects any installation of Apache Airflow running a version earlier than 3.2.2. Users should verify the currently installed version and plan an upgrade to 3.2.2 or newer to receive the patched redirect logic.

Risk and Exploitability

The CVSS score of 7.2 indicates medium‑to‑high severity, while the EPSS score is less than 1% and the flaw is not listed in CISA’s KEV catalog, which suggests a low likelihood of exploitation. Attackers must be authenticated but do not need elevated privileges. Based on the description, it is inferred that once the redirect bypass is achieved, the attacker can redirect users to malicious domains, potentially enabling phishing or credential harvesting. The exploit is straightforward for compromised or target accounts.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Airflow to version 3.2.2 or later to apply the fixed redirect logic.
  • Configure the deployment behind a reverse proxy that removes off‑domain next= query parameters before they reach the login endpoint.
  • Implement additional input validation or a whitelist to ensure redirect targets are confined to trusted internal domains.

Generated by OpenCVE AI on June 2, 2026 at 18:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6hcw-qqr8-pjj8 Apache Airflow: Authenticated users can bypass the `is_safe_url` check
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache airflow
Vendors & Products Apache
Apache airflow
Type Values Removed Values Added
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.
Title Apache Airflow: Open Redirect Bypass Vulnerability
Weaknesses CWE-601
References
Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 3, 2026, 6:55 AM
Reserved
Apr 16, 2026, 1:04 AM
Status
Analyzed
Published
Jun 1, 2026, 9:16 AM
Modified
Nov 3, 2026, 7:19 AM