PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-40961 Apache Software Foundation CVE debrief

A URL redirection vulnerability in Apache Airflow's login redirect route allows authenticated users to craft URLs that bypass the `is_safe_url` validation, enabling open redirect attacks from a trusted Airflow domain to attacker-controlled origins. The flaw resides in insufficient validation of the `next=` query parameter during login flow redirection. Apache has addressed this in version 3.2.2. The vulnerability was published to the NVD on June 1, 2026, with a fix pull request and security discussion available via official Apache channels.

Vendor
Apache Software Foundation
Product
Apache Airflow
CVSS
Unknown
CISA KEV
Not listed in stored evidence
Original CVE published
2026-06-01
Original CVE updated
2026-06-01
Advisory published
2026-06-01
Advisory updated
2026-06-01

Who should care

Organizations running Apache Airflow versions prior to 3.2.2, particularly those with internet-facing or multi-tenant deployments where authenticated users could leverage redirects for phishing or credential harvesting against other users.

Technical summary

The vulnerability exists in Apache Airflow's login redirect route where the `is_safe_url` check can be bypassed through crafted URLs, allowing authenticated users to redirect from a trusted Airflow instance to arbitrary external domains. This is classified as CWE-601 (URL Redirection to Untrusted Site). The attack requires an authenticated session and leverages the `next=` query parameter commonly used in login flows. The vendor fix in apache-airflow 3.2.2 corrects the URL validation logic. A compensating control involves reverse proxy filtering of the `next=` parameter to prevent off-domain redirection requests from reaching the application.

Defensive priority

medium

Recommended defensive actions

  • Upgrade apache-airflow to version 3.2.2 or later to obtain the vendor fix for the login redirect validation flaw.
  • As a defense-in-depth measure, deploy Airflow behind a reverse proxy configured to strip or validate off-domain `next=` query parameters before they reach the login endpoint.
  • Review access logs for anomalous `next=` parameter values in requests to the login redirect route to identify potential exploitation attempts.
  • Verify that any custom authentication integrations or login handlers do not independently reintroduce open redirect behavior through similar `next` parameter handling.

Evidence notes

The NVD record lists CWE-601 (URL Redirection to Untrusted Site, 'Open Redirect') as the primary weakness. The fix is tracked via GitHub pull request 65557, and an Apache security mailing list thread documents coordinated disclosure.

Official resources

The CVE was published on June 1, 2026. Apache has released a fix in apache-airflow 3.2.2 and disclosed the issue through official project security channels.