# Migration Context: Apache Airflow v2 -> v3 # Generated by Changelogs.us: 2026-11-30T03:04:46.717546+00:00 # Target Version: 3.4.0 # Upgrade Command: N/A # Breaking Changes: 6 # Security Fixes: 112 ## Executive Summary Upgrading Apache Airflow from 2 to 3 involves 21 releases with risk rating High. ## Breaking Changes List: - [v3.0.2] - Remove unnecessary breaking flag in config command (#50781): - [v3.2.0] This is a breaking change for any custom code that performs string-based path manipulations relying on this behavior.: - [v3.3.0] - Fix older and custom secrets backends breaking on Airflow 3.2 (#68302): - [v3.3.0] - Fix Dag run partition key filter breaking on composite keys containing ``|`` (#68459): - [v3.3.2] - UI: Fix ``hierarchical_alphabetical`` sort order breaking the graph and grid (#72618): - [v3.4.0] - Stop one malformed provider from breaking discovery for all providers (#72854): ## Patched Vulnerabilities (CVEs): - [GHSA-q475-2pgm-7hvp] (Severity: MEDIUM) in v3.0.4: Apache Airflow: Connection sensitive details exposed to users with READ permissions - [GHSA-v3c9-j6h9-66v4] (Severity: MEDIUM) in v3.0.5: Apache Airflow has a command injection vulnerability in "example_dag_decorator" - [PYSEC-2026-1135] (Severity: UNRATED) in v3.0.5: Apache Airflow has a command injection vulnerability in "example_dag_decorator" - [GHSA-273c-4g26-4jpm] (Severity: MEDIUM) in v3.1.1: Apache Airflow `/api/v2/dagReports` executes DAG Python in API - [GHSA-gp5f-cx7h-8q6f] (Severity: MEDIUM) in v3.1.1: Apache Airflow's create action can upsert existing Pools/Connections/Variables - [PYSEC-2023-314] (Severity: CRITICAL) in v3.1.1: Improper Input Validation vulnerability in the Apache Airflow Sqoop Provider. This issue affects Apache Airflow Sqoop Provider versions before 3.1.1. - [PYSEC-2026-1129] (Severity: MEDIUM) in v3.1.1: Apache Airflow `/api/v2/dagReports` executes DAG Python in API - [PYSEC-2026-1133] (Severity: MEDIUM) in v3.1.1: Apache Airflow's create action can upsert existing Pools/Connections/Variables - [GHSA-fv47-pqh6-wxgq] (Severity: MEDIUM) in v3.1.5: Apache Airflow exposes secret values to authenticated UI users via rendered templates - [GHSA-3qmm-r55x-hpxx] (Severity: HIGH) in v3.1.6: Apache Airflow secrets in rendered templates could contain parts of sensitive values when truncated - [GHSA-7c2f-r6gc-h92h] (Severity: HIGH) in v3.1.6: Apache Airflow proxy credentials for various providers might leak in task logs - [PYSEC-2026-10] (Severity: HIGH) in v3.1.6: In Apache Airflow versions before 3.1.6, and 2.11.1 the proxies and proxy fields within a Connection may include proxy URLs containing embedded authentication information. These fields were not treate - [PYSEC-2026-9] (Severity: HIGH) in v3.1.6: In Apache Airflow versions before 3.1.6, when rendered template fields in a Dag exceed [core] max_templated_field_length, sensitive values could be exposed in cleartext in the Rendered Templates UI. T - [GHSA-5g2w-9f8g-g5q7] (Severity: MEDIUM) in v3.1.7: Apache Airflow UI Exposes DAG Import Errors to Unauthorized Authenticated Users - [GHSA-pm44-x5x7-24c4] (Severity: MEDIUM) in v3.1.7: Apache Airflow Has an Authorization Bypass That Allows Unauthorized Task Log Access - [PYSEC-2026-11] (Severity: MEDIUM) in v3.1.7: Apache Airflow versions 3.1.0 through 3.1.6 contain an authorization flaw that can allow an authenticated user with custom permissions limited to task access to view task logs without having task log - [PYSEC-2026-12] (Severity: MEDIUM) in v3.1.7: Apache Airflow versions 3.0.0 - 3.1.7, has vulnerability that allows authenticated UI users with permission to one or more specific Dags to view import errors generated by other Dags they did not have - [GHSA-4fhm-p86v-hwpx] (Severity: HIGH) in v3.1.8: Apache Airflow: Path of session token in cookie does not consider base_url - session hijacking via co-hosted applications - [GHSA-4g48-54q2-fg7q] (Severity: MEDIUM) in v3.1.8: Apache Airlfow: Sensitive Azure Service Bus connection string (and possibly other providers) exposed to users with view access - [GHSA-4m3h-wp5w-5hqh] (Severity: HIGH) in v3.1.8: Apache Airflow: Wildcard DagVersion Listing Bypasses Per‑DAG RBAC and Leaks Metadata - [GHSA-8x34-9q3v-h7g8] (Severity: HIGH) in v3.1.8: Apache Airflow: Execution API HITL Endpoints Missing Per-Task Authorization - [GHSA-x3fv-96qh-67m7] (Severity: MEDIUM) in v3.1.8: Apache Airflow: DAG authorization bypass - [PYSEC-2026-14] (Severity: MEDIUM) in v3.1.8: Apache Airflow versions 3.0.0 through 3.1.7 FastAPI DagVersion listing API does not apply per-DAG authorization filtering when the request is made with dag_id set to "~" (wildcard for all DAGs). As a - [PYSEC-2026-15] (Severity: MEDIUM) in v3.1.8: Apache Airflow versions 3.1.0 through 3.1.7 /ui/dependencies endpoint returns the full DAG dependency graph without filtering by authorized DAG IDs. This allows an authenticated user with only DAG Dep - [PYSEC-2026-16] (Severity: HIGH) in v3.1.8: Apache Airflow versions 3.1.0 through 3.1.7 session token (_token) in cookies is set to path=/ regardless of the configured [webserver] base_url or [api] base_url. This allows any application co-host - [PYSEC-2026-17] (Severity: HIGH) in v3.1.8: Apache Airflow versions 3.1.0 through 3.1.7 missing authorization vulnerability in the Execution API's Human-in-the-Loop (HITL) endpoints that allows any authenticated task instance to read, approve, - [PYSEC-2026-2344] (Severity: MEDIUM) in v3.1.8: Apache Airlfow: Sensitive Azure Service Bus connection string (and possibly other providers) exposed to users with view access - [GHSA-c92r-g8j5-vhcx] (Severity: CRITICAL) in v3.2.0: Apache Airflow: JWT token still valid after logout - [GHSA-j86x-fwp2-qh7v] (Severity: MEDIUM) in v3.2.0: Apache Airflow: Secrets from Airflow config file logged in plain text in DAG run logs UI - [GHSA-mc4f-r875-v87w] (Severity: HIGH) in v3.2.0: Apache Airflow: Unsafe Deserialization via Legacy Serialization Keys (__type/__var) Bypass in XCom API - [GHSA-phv5-vq5p-qhp7] (Severity: HIGH) in v3.2.0: Apache Airflow: JWT token appearing in logs - [GHSA-r7vr-m4jw-r794] (Severity: MEDIUM) in v3.2.0: Apache Airflow has an authorization bypass in DagRun wait endpoint - [GHSA-w9r4-94fj-xp69] (Severity: LOW) in v3.2.0: Apache Airflow Exposes Secrets in Variables Saved as JSON Dictionaries - [PYSEC-2026-13] (Severity: HIGH) in v3.2.0: Dag Authors, who normally should not be able to execute code in the webserver context could craft XCom payload causing the webserver to execute arbitrary code. Since Dag Authors are already highly tru - [PYSEC-2026-18] (Severity: HIGH) in v3.2.0: In case of SQL errors, exception/stack trace of errors was exposed in API even if "api/expose_stack_traces" was set to false. That could lead to exposing additional information to potential attacker. - [PYSEC-2026-19] (Severity: LOW) in v3.2.0: Secrets in Variables saved as JSON dictionaries were not properly redacted - in case thee variables were retrieved by the user the secrets stored as nested fields were not masked. If you do not store - [PYSEC-2026-20] (Severity: HIGH) in v3.2.0: Dag Authors, who normally should not be able to execute code in the webserver context could craft XCom payload causing the webserver to execute arbitrary code. Since Dag Authors are already highly tru - [PYSEC-2026-21] (Severity: MEDIUM) in v3.2.0: Apache Airflow versions 3.0.0 through 3.1.8 DagRun wait endpoint returns XCom result values even to users who only have DAG Run read permissions, such as the Viewer role.This behavior conflicts with t - [PYSEC-2026-2352] (Severity: HIGH) in v3.2.0: Apache Airflow: JWT token appearing in logs - [PYSEC-2026-2353] (Severity: HIGH) in v3.2.0: Apache Airflow: RCE by race condition in example_xcom dag - [PYSEC-2026-269] (Severity: CRITICAL) in v3.2.0: Apache Airflow: JWT token still valid after logout - [PYSEC-2026-8] (Severity: HIGH) in v3.2.0: Before Airflow 3.2.0, it was unclear that secure Airflow deployments require the Deployment Manager to take appropriate actions and pay attention to security details and security model of Airflow. Som - [GHSA-2883-wwh7-x57v] (Severity: MEDIUM) in v3.2.2: Apache Airflow: Incomplete redaction allowlist exposes secrets in Connection `extra` to read-permitted users - [GHSA-2r5m-76wx-56gx] (Severity: HIGH) in v3.2.2: Apache Airflow Vulnerable to Deserialization of Untrusted Data - [GHSA-33g2-gx67-c2h3] (Severity: MEDIUM) in v3.2.2: Apache Airflow Vulnerable to Exposure of Sensitive Information to an Unauthorized Actor - [GHSA-6hcw-qqr8-pjj8] (Severity: HIGH) in v3.2.2: Apache Airflow: Authenticated users can bypass the `is_safe_url` check - [GHSA-799x-qp47-8qwq] (Severity: MEDIUM) in v3.2.2: Apache Airflow has no certificate validation on SMTP STARTTLS connections - [GHSA-89cj-xrpx-j79m] (Severity: MEDIUM) in v3.2.2: Apache Airflow has a Link Following issue - [GHSA-95v7-h9j5-gvjr] (Severity: MEDIUM) in v3.2.2: Apache Airflow has a Sensitive Cookie in HTTPS Session Without 'Secure' Attribute - [GHSA-c85c-g9wv-pph2] (Severity: CRITICAL) in v3.2.2: Apache Airflow vulnerable to Improper Neutralization of Special Elements Used in a Template Engine - [GHSA-cg3x-89rc-x9mw] (Severity: MEDIUM) in v3.2.2: Apache Airflow vulnerable to Exposure of Sensitive Information to an Unauthorized Actor - [GHSA-gprj-xvq8-w53q] (Severity: LOW) in v3.2.2: Apache Airflow has an Improper Authorization issue - [GHSA-mxq5-f9c5-w4p5] (Severity: HIGH) in v3.2.2: Apache Airflow Vulnerable to Authorization Bypass Through User-Controlled Key - [GHSA-qphr-3mvq-v466] (Severity: MEDIUM) in v3.2.2: Apache Airflow has an Authorization Bypass Through User-Controlled Key - [GHSA-vr7m-c6v4-8cx8] (Severity: MEDIUM) in v3.2.2: Apache Airflow: Auth manager doesn't invalidate JWT tokens after users click logout - [GHSA-wr76-29cr-67w8] (Severity: HIGH) in v3.2.2: Apache Airflow has a Deserialization of Untrusted Data vulnerability - [GHSA-x2x7-p37c-43cr] (Severity: MEDIUM) in v3.2.2: Apache Airflow has a Missing Authorization issue - [GHSA-x5wm-j6wh-2834] (Severity: LOW) in v3.2.2: Apache Airflow has an Incorrect Authorization issue - [PYSEC-2026-171] (Severity: MEDIUM) in v3.2.2: Apache Airflow's `JWTRefreshMiddleware` set the JWT auth cookie without the `Secure` flag, so deployments running the Airflow API server behind an HTTPS-terminating reverse proxy (e.g. nginx / Envoy / - [PYSEC-2026-172] (Severity: MEDIUM) in v3.2.2: A bug in Apache Airflow's rendered-template field handling caused nested sensitive-key masking (e.g. nested `password` / `token` / `secret` / `api_key` keys inside a JSON template structure) to be byp - [PYSEC-2026-173] (Severity: MEDIUM) in v3.2.2: A bug in the GET `/api/v2/connections/{connection_id}` REST API endpoint in Apache Airflow allowed an authenticated UI/API user with Connection-read permission to retrieve secrets stored in a Connecti - [PYSEC-2026-174] (Severity: LOW) in v3.2.2: Exploitation requires the attacker to already be an authenticated Airflow worker holding a valid Log-server JWT issued for at least one Dag. Apache Airflow's Log server authorized JWT tokens against D - [PYSEC-2026-181] (Severity: MEDIUM) in v3.2.2: A Dag author could either (a) create a symlink under their task's log directory pointing to an arbitrary file readable by the API server process (read-path attack - e.g. `/etc/passwd` or `airflow.cfg` - [PYSEC-2026-182] (Severity: MEDIUM) in v3.2.2: The partitioned_dag_runs endpoints in the Airflow UI enforced only asset-level access control, not per-Dag authorization. An authenticated UI/API user with global Asset:read permission could enumerate - [PYSEC-2026-183] (Severity: HIGH) in v3.2.2: A bug in Apache Airflow's bulk Task Instances API (`PATCH/DELETE /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances`) evaluated authorization against the `dag_id` resolved from the URL path whil - [PYSEC-2026-184] (Severity: CRITICAL) in v3.2.2: Apache Airflow's official documentation at `core-concepts/dag-run.html` ("Passing Parameters when triggering Dags") showed a verbatim `BashOperator(bash_command="echo value: {{ dag_run.conf['conf1'] } - [PYSEC-2026-185] (Severity: HIGH) in v3.2.2: A bug in Apache Airflow's XCom PATCH endpoint `PATCH /api/v2/xcomEntries/{key}` allowed an authenticated UI/API user with XCom write permission on a Dag to set XCom entries under reserved key names (e - [PYSEC-2026-186] (Severity: HIGH) in v3.2.2: Apache Airflow's scheduler-side deadline-reference decoder (`SerializedCustomReference.deserialize_reference`) imported and dispatched arbitrary class paths drawn from DAG-author-controlled serialized - [PYSEC-2026-187] (Severity: MEDIUM) in v3.2.2: A bug in Apache Airflow's auth manager logout handling left previously-issued JWT tokens valid after the user clicked logout in the UI: the logout flow for `FabAuthManager` and `KeycloakAuthManager` d - [PYSEC-2026-2343] (Severity: MEDIUM) in v3.2.2: Apache Airflow Vulnerable to Exposure of Sensitive Information to an Unauthorized Actor - [PYSEC-2026-2345] (Severity: HIGH) in v3.2.2: Apache Airflow: Authenticated users can bypass the `is_safe_url` check - [PYSEC-2026-2346] (Severity: MEDIUM) in v3.2.2: Apache Airflow has no certificate validation on SMTP STARTTLS connections - [PYSEC-2026-2349] (Severity: LOW) in v3.2.2: Apache Airflow has an Improper Authorization issue - [PYSEC-2026-2354] (Severity: MEDIUM) in v3.2.2: Apache Airflow has an Authorization Bypass Through User-Controlled Key - [GHSA-22hf-vx2v-gjff] (Severity: MEDIUM) in v3.3.0: Apache Airflow exposes deferred trigger kwargs in task-instance API responses - [GHSA-2943-9672-r45w] (Severity: CRITICAL) in v3.3.0: Apache Airflow allows code execution through unsafe serialized DAG deserialization - [GHSA-3322-mjxh-9mp5] (Severity: MEDIUM) in v3.3.0: Apache Airflow exposes unreadable DAG identifiers in the scheduling dependencies graph - [GHSA-4fh7-7jx4-8f6c] (Severity: MEDIUM) in v3.3.0: apache-airflow DAG source authorization bypass exposes co-located DAG source - [GHSA-563f-2439-rmq4] (Severity: MEDIUM) in v3.3.0: Apache Airflow exposes sensitive JSON Variable values through the Bulk Variables API - [GHSA-9933-5rrp-mfwx] (Severity: MEDIUM) in v3.3.0: Apache Airflow exposes secrets backend credentials through the Config API - [PYSEC-2026-2082] (Severity: CRITICAL) in v3.3.0: A bug in `BaseSerialization.deserialize()` allowed unrestricted `import_string()` of attacker-controlled class paths when the Scheduler / API Server loaded a serialized DAG: a DAG author could embed a - [PYSEC-2026-2083] (Severity: MEDIUM) in v3.3.0: Before apache-airflow 3.3.0, a user authorized to read one Dag could disclose the source of other Dags co-located in the same source file. `GET /api/v2/dagSources/{dag_id}` - and the equivalent Dag-so - [PYSEC-2026-2086] (Severity: MEDIUM) in v3.3.0: A bug in Apache Airflow's `/ui/dependencies` scheduling graph endpoint applied the caller's readable-Dag filter to the top-level serialized Dag key but still emitted referenced Dag IDs through the `de - [PYSEC-2026-2087] (Severity: MEDIUM) in v3.3.0: The Config API in Apache Airflow surfaced per-key secrets-backend overrides (environment variables like `AIRFLOW__SECRETS__BACKEND_KWARG__SECRET_ID` and `AIRFLOW__WORKERS__SECRETS_BACKEND_KWARG__SECRE - [PYSEC-2026-2088] (Severity: MEDIUM) in v3.3.0: In Apache Airflow before 3.3.0, the REST API task-instance detail and list endpoints returned a deferred task's trigger kwargs without masking. When a deferred operator passed a secret (for example a - [PYSEC-2026-3806] (Severity: MEDIUM) in v3.3.0: Apache Airflow exposes sensitive JSON Variable values through the Bulk Variables API - [GHSA-2qjv-p2gc-mjg2] (Severity: HIGH) in v3.3.1: Apache Airflow Task SDK Callback deserialization can import arbitrary modules in the scheduler - [GHSA-5247-m8w9-2v4m] (Severity: MEDIUM) in v3.3.1: Apache Airflow missing team context permits cross-team Dag actions and XCom reads - [GHSA-75mg-c62r-v95g] (Severity: MEDIUM) in v3.3.1: Apache Airflow environment-variable secrets backend permits cross-team credential use - [GHSA-8prw-8m6x-8w6f] (Severity: HIGH) in v3.3.1: Apache Airflow exception-node deserialization permits arbitrary callable execution - [GHSA-c56v-8w4g-3mfm] (Severity: MEDIUM) in v3.3.1: Apache Airflow Config API exposes team-scoped sensitive configuration values - [GHSA-cjv4-7hp2-2x9h] (Severity: MEDIUM) in v3.3.1: Apache Airflow bulk endpoints log Variable and Connection secrets in cleartext - [GHSA-f3c2-j7g8-vpp8] (Severity: MEDIUM) in v3.3.1: Apache Airflow Task SDK fails to mask list-shaped JSON Variables - [GHSA-f643-3rc2-j27w] (Severity: MEDIUM) in v3.3.1: Apache Airflow exposes dict-valued var.json secrets in Rendered Templates - [GHSA-fcmm-42r9-mmmm] (Severity: MEDIUM) in v3.3.1: Apache Airflow XCom API permits unsafe deserialization through JSON string literals - [GHSA-g4qj-5vxv-wggf] (Severity: MEDIUM) in v3.3.1: Apache Airflow Variables UI fails to mask sensitive values in deeply nested iterables - [GHSA-j4jc-cq9h-xrhr] (Severity: HIGH) in v3.3.1: Apache Airflow Backfill API parser discrepancy permits cross-DAG authorization bypass - [GHSA-q4c3-7575-55j2] (Severity: HIGH) in v3.3.1: Apache Airflow scheduler unsafely deserializes human-in-the-loop task next_kwargs - [PYSEC-2026-3705] (Severity: MEDIUM) in v3.3.1: Apache Airflow's secrets masker hides values stored under sensitive key names when they are displayed in the UI. The masker's recursion-depth limit did not descend into values nested inside a list, tu - [PYSEC-2026-3706] (Severity: MEDIUM) in v3.3.1: Apache Airflow's secrets masker did not mask `var.json` Variable values whose value is a dict in the Rendered Templates UI - the dict value failed an `isinstance(str)` guard - so a secret stored as a - [PYSEC-2026-3707] (Severity: HIGH) in v3.3.1: Apache Airflow 3.3.0 moved human-in-the-loop tasks from the triggerer to a new `awaiting_input` task state swept by the scheduler. That sweep deserializes the task instance's `next_kwargs` without an - [PYSEC-2026-3708] (Severity: HIGH) in v3.3.1: Apache Airflow's Task SDK rebuilt a `Callback` object from serialized data by re-running its constructor, which imports the module named by the stored callback path. Because `SyncCallback` is itself a - [PYSEC-2026-3709] (Severity: MEDIUM) in v3.3.1: Apache Airflow's environment-variable secrets backend resolved a team-scoped Connection or Variable from the wrong team's scope. The guard meant to prevent this only ran when no team scope was supplie - [PYSEC-2026-3710] (Severity: HIGH) in v3.3.1: Apache Airflow's Backfill API authorized a request against a Dag id supplied by the caller whenever the `backfill_id` path segment failed to parse. The authorization dependency parsed it with `int()` - [PYSEC-2026-3711] (Severity: MEDIUM) in v3.3.1: Apache Airflow wrote Variable values and Connection `extra` contents to the audit log in cleartext when they were submitted through the bulk endpoints (`PATCH /api/v2/variables` and `PATCH /api/v2/con - [PYSEC-2026-3712] (Severity: MEDIUM) in v3.3.1: Apache Airflow's Task SDK did not mask the contents of a Variable whose JSON value is a list, so secrets stored in that shape appeared in cleartext in task logs and in the Rendered Templates UI. Maski - [PYSEC-2026-3991] (Severity: HIGH) in v3.3.1: Apache Airflow's serialization layer reconstructed exception nodes by calling `import_string()` on a class name taken from the serialized blob and instantiating it with arguments from the same blob, w - [PYSEC-2026-3992] (Severity: MEDIUM) in v3.3.1: Apache Airflow's XCom `GET /api/v2/{...}/xcomEntries/{key}?deserialize=true` endpoint passed a string-literal payload through `BaseXCom.deserialize_value` without the `_check_forbidden_xcom_keys` guar - [PYSEC-2026-3993] (Severity: MEDIUM) in v3.3.1: Apache Airflow's Config API did not mask team-scoped sensitive configuration values in multi-team deployments. When an administrator has enabled multi-team mode and exposed the Config API, an authenti - [PYSEC-2026-3994] (Severity: MEDIUM) in v3.3.1: Apache Airflow's asset materialization endpoint (`POST /api/v2/assets/{asset_id}/materialize`) and the XCom result check on `wait_dag_run_until_finished` authorized the target Dag without its team, un - [PYSEC-2026-3988] (Severity: MEDIUM) in v3.3.2: Apache Airflow's `/assets/events` API returned asset events for every Dag in the deployment, with no filter restricting them to the Dags the caller is authorized to read. Any authenticated user holdin - [PYSEC-2026-3990] (Severity: CRITICAL) in v3.3.2: Apache Airflow: the Core API logout endpoint revokes only a session token presented as the _token cookie. When a client logs out presenting its credential as an Authorization bearer header instead, th ## Instructions for AI Assistant: When migrating user code from Apache Airflow 2 to 3, scan for the deprecated APIs and breaking changes above and refactor code to use modern v3.4.0 idioms.