Advisory

PYSEC-2026-2345

Also known as: BIT-airflow-2026-40961, CVE-2026-40961, GHSA-6hcw-qqr8-pjj8

Summary

Apache Airflow: Authenticated users can bypass the is_safe_url check

Details

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.

Severity

High Basis: CVSS v3 score 7.2, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Dates

Published
2026-07-13 15:35 UTC
Modified
2026-07-13 16:42 UTC

Affected packages and fixes

apache-airflow

PyPI · All systems

Affected

  • introduced 0, fixed 3.2.2 (ecosystem)

Fixed versions

3.2.2

Fix

  • Fixed version 3.2.2
    pip install --upgrade apache-airflow==3.2.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences