Data Engineering & Analytics MIGRATION GUIDE HIGH MIGRATION EFFORT

Apache Airflow 2 to 3 Migration Guide

Upgrading Apache Airflow from v2 to v3 spans 21 intermediate releases with 6 breaking changes and 112 resolved security advisories. Review the actionable checklist, required dependency adjustments, and CLI commands below.

Jump to Breaking Changes (6) ↓ View context.txt (AI Prompts) Apache Airflow Security Track Record → Apache Airflow Overview
Migration Risk
High
Based on 6 breaking changes
Breaking Changes
6
Deprecations & removed APIs
Max Release Impact
10/10
Peak architectural complexity
Resolved CVEs
112
Vulnerabilities patched

Step 1: Execute Upgrade Command

Ensure you have a clean git tree before applying package updates.

Refer to the official package manager for Apache Airflow to target version 3.4.0.

Step 2: Breaking Changes & Incompatible APIs (6)

Inspect and check off each breaking change verified in your codebase.

0 / 6 resolved
v3.0.2
Inspect 3.0.2 release notes →
v3.2.0
Inspect 3.2.0 release notes →
v3.3.0
Inspect 3.3.0 release notes →
v3.3.0
Inspect 3.3.0 release notes →
v3.3.2
Inspect 3.3.2 release notes →
v3.4.0
Inspect 3.4.0 release notes →

Step 3: Patched Security Advisories (112)

Upgrading to v3 resolves the following known vulnerabilities.

All Apache Airflow CVEs →
Advisory ID Fixed in Version Severity (CVSS) Vulnerability Summary
GHSA-q475-2pgm-7hvp 3.0.4 MEDIUM Apache Airflow: Connection sensitive details exposed to users with READ permissions
GHSA-v3c9-j6h9-66v4 3.0.5 MEDIUM Apache Airflow has a command injection vulnerability in "example_dag_decorator"
PYSEC-2026-1135 3.0.5 UNRATED Apache Airflow has a command injection vulnerability in "example_dag_decorator"
GHSA-273c-4g26-4jpm 3.1.1 MEDIUM Apache Airflow `/api/v2/dagReports` executes DAG Python in API
GHSA-gp5f-cx7h-8q6f 3.1.1 MEDIUM Apache Airflow's create action can upsert existing Pools/Connections/Variables
PYSEC-2023-314 3.1.1 CRITICAL 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 3.1.1 MEDIUM Apache Airflow `/api/v2/dagReports` executes DAG Python in API
PYSEC-2026-1133 3.1.1 MEDIUM Apache Airflow's create action can upsert existing Pools/Connections/Variables
GHSA-fv47-pqh6-wxgq 3.1.5 MEDIUM Apache Airflow exposes secret values to authenticated UI users via rendered templates
GHSA-3qmm-r55x-hpxx 3.1.6 HIGH Apache Airflow secrets in rendered templates could contain parts of sensitive values when truncated
GHSA-7c2f-r6gc-h92h 3.1.6 HIGH Apache Airflow proxy credentials for various providers might leak in task logs
PYSEC-2026-10 3.1.6 HIGH 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 3.1.6 HIGH 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 3.1.7 MEDIUM Apache Airflow UI Exposes DAG Import Errors to Unauthorized Authenticated Users
GHSA-pm44-x5x7-24c4 3.1.7 MEDIUM Apache Airflow Has an Authorization Bypass That Allows Unauthorized Task Log Access
PYSEC-2026-11 3.1.7 MEDIUM 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 3.1.7 MEDIUM 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 3.1.8 HIGH Apache Airflow: Path of session token in cookie does not consider base_url - session hijacking via co-hosted applications
GHSA-4g48-54q2-fg7q 3.1.8 MEDIUM Apache Airlfow: Sensitive Azure Service Bus connection string (and possibly other providers) exposed to users with view access
GHSA-4m3h-wp5w-5hqh 3.1.8 HIGH Apache Airflow: Wildcard DagVersion Listing Bypasses Per‑DAG RBAC and Leaks Metadata
GHSA-8x34-9q3v-h7g8 3.1.8 HIGH Apache Airflow: Execution API HITL Endpoints Missing Per-Task Authorization
GHSA-x3fv-96qh-67m7 3.1.8 MEDIUM Apache Airflow: DAG authorization bypass
PYSEC-2026-14 3.1.8 MEDIUM 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 3.1.8 MEDIUM 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 3.1.8 HIGH 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 3.1.8 HIGH 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 3.1.8 MEDIUM Apache Airlfow: Sensitive Azure Service Bus connection string (and possibly other providers) exposed to users with view access
GHSA-c92r-g8j5-vhcx 3.2.0 CRITICAL Apache Airflow: JWT token still valid after logout
GHSA-j86x-fwp2-qh7v 3.2.0 MEDIUM Apache Airflow: Secrets from Airflow config file logged in plain text in DAG run logs UI
GHSA-mc4f-r875-v87w 3.2.0 HIGH Apache Airflow: Unsafe Deserialization via Legacy Serialization Keys (__type/__var) Bypass in XCom API
GHSA-phv5-vq5p-qhp7 3.2.0 HIGH Apache Airflow: JWT token appearing in logs
GHSA-r7vr-m4jw-r794 3.2.0 MEDIUM Apache Airflow has an authorization bypass in DagRun wait endpoint
GHSA-w9r4-94fj-xp69 3.2.0 LOW Apache Airflow Exposes Secrets in Variables Saved as JSON Dictionaries
PYSEC-2026-13 3.2.0 HIGH 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 3.2.0 HIGH 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 3.2.0 LOW 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 3.2.0 HIGH 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 3.2.0 MEDIUM 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 3.2.0 HIGH Apache Airflow: JWT token appearing in logs
PYSEC-2026-2353 3.2.0 HIGH Apache Airflow: RCE by race condition in example_xcom dag
PYSEC-2026-269 3.2.0 CRITICAL Apache Airflow: JWT token still valid after logout
PYSEC-2026-8 3.2.0 HIGH 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 3.2.2 MEDIUM Apache Airflow: Incomplete redaction allowlist exposes secrets in Connection `extra` to read-permitted users
GHSA-2r5m-76wx-56gx 3.2.2 HIGH Apache Airflow Vulnerable to Deserialization of Untrusted Data
GHSA-33g2-gx67-c2h3 3.2.2 MEDIUM Apache Airflow Vulnerable to Exposure of Sensitive Information to an Unauthorized Actor
GHSA-6hcw-qqr8-pjj8 3.2.2 HIGH Apache Airflow: Authenticated users can bypass the `is_safe_url` check
GHSA-799x-qp47-8qwq 3.2.2 MEDIUM Apache Airflow has no certificate validation on SMTP STARTTLS connections
GHSA-89cj-xrpx-j79m 3.2.2 MEDIUM Apache Airflow has a Link Following issue
GHSA-95v7-h9j5-gvjr 3.2.2 MEDIUM Apache Airflow has a Sensitive Cookie in HTTPS Session Without 'Secure' Attribute
GHSA-c85c-g9wv-pph2 3.2.2 CRITICAL Apache Airflow vulnerable to Improper Neutralization of Special Elements Used in a Template Engine
GHSA-cg3x-89rc-x9mw 3.2.2 MEDIUM Apache Airflow vulnerable to Exposure of Sensitive Information to an Unauthorized Actor
GHSA-gprj-xvq8-w53q 3.2.2 LOW Apache Airflow has an Improper Authorization issue
GHSA-mxq5-f9c5-w4p5 3.2.2 HIGH Apache Airflow Vulnerable to Authorization Bypass Through User-Controlled Key
GHSA-qphr-3mvq-v466 3.2.2 MEDIUM Apache Airflow has an Authorization Bypass Through User-Controlled Key
GHSA-vr7m-c6v4-8cx8 3.2.2 MEDIUM Apache Airflow: Auth manager doesn't invalidate JWT tokens after users click logout
GHSA-wr76-29cr-67w8 3.2.2 HIGH Apache Airflow has a Deserialization of Untrusted Data vulnerability
GHSA-x2x7-p37c-43cr 3.2.2 MEDIUM Apache Airflow has a Missing Authorization issue
GHSA-x5wm-j6wh-2834 3.2.2 LOW Apache Airflow has an Incorrect Authorization issue
PYSEC-2026-171 3.2.2 MEDIUM 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 3.2.2 MEDIUM 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 3.2.2 MEDIUM 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 3.2.2 LOW 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 3.2.2 MEDIUM 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 3.2.2 MEDIUM 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 3.2.2 HIGH 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 3.2.2 CRITICAL 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 3.2.2 HIGH 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 3.2.2 HIGH 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 3.2.2 MEDIUM 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 3.2.2 MEDIUM Apache Airflow Vulnerable to Exposure of Sensitive Information to an Unauthorized Actor
PYSEC-2026-2345 3.2.2 HIGH Apache Airflow: Authenticated users can bypass the `is_safe_url` check
PYSEC-2026-2346 3.2.2 MEDIUM Apache Airflow has no certificate validation on SMTP STARTTLS connections
PYSEC-2026-2349 3.2.2 LOW Apache Airflow has an Improper Authorization issue
PYSEC-2026-2354 3.2.2 MEDIUM Apache Airflow has an Authorization Bypass Through User-Controlled Key
GHSA-22hf-vx2v-gjff 3.3.0 MEDIUM Apache Airflow exposes deferred trigger kwargs in task-instance API responses
GHSA-2943-9672-r45w 3.3.0 CRITICAL Apache Airflow allows code execution through unsafe serialized DAG deserialization
GHSA-3322-mjxh-9mp5 3.3.0 MEDIUM Apache Airflow exposes unreadable DAG identifiers in the scheduling dependencies graph
GHSA-4fh7-7jx4-8f6c 3.3.0 MEDIUM apache-airflow DAG source authorization bypass exposes co-located DAG source
GHSA-563f-2439-rmq4 3.3.0 MEDIUM Apache Airflow exposes sensitive JSON Variable values through the Bulk Variables API
GHSA-9933-5rrp-mfwx 3.3.0 MEDIUM Apache Airflow exposes secrets backend credentials through the Config API
PYSEC-2026-2082 3.3.0 CRITICAL 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 3.3.0 MEDIUM 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 3.3.0 MEDIUM 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 3.3.0 MEDIUM 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 3.3.0 MEDIUM 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 3.3.0 MEDIUM Apache Airflow exposes sensitive JSON Variable values through the Bulk Variables API
GHSA-2qjv-p2gc-mjg2 3.3.1 HIGH Apache Airflow Task SDK Callback deserialization can import arbitrary modules in the scheduler
GHSA-5247-m8w9-2v4m 3.3.1 MEDIUM Apache Airflow missing team context permits cross-team Dag actions and XCom reads
GHSA-75mg-c62r-v95g 3.3.1 MEDIUM Apache Airflow environment-variable secrets backend permits cross-team credential use
GHSA-8prw-8m6x-8w6f 3.3.1 HIGH Apache Airflow exception-node deserialization permits arbitrary callable execution
GHSA-c56v-8w4g-3mfm 3.3.1 MEDIUM Apache Airflow Config API exposes team-scoped sensitive configuration values
GHSA-cjv4-7hp2-2x9h 3.3.1 MEDIUM Apache Airflow bulk endpoints log Variable and Connection secrets in cleartext
GHSA-f3c2-j7g8-vpp8 3.3.1 MEDIUM Apache Airflow Task SDK fails to mask list-shaped JSON Variables
GHSA-f643-3rc2-j27w 3.3.1 MEDIUM Apache Airflow exposes dict-valued var.json secrets in Rendered Templates
GHSA-fcmm-42r9-mmmm 3.3.1 MEDIUM Apache Airflow XCom API permits unsafe deserialization through JSON string literals
GHSA-g4qj-5vxv-wggf 3.3.1 MEDIUM Apache Airflow Variables UI fails to mask sensitive values in deeply nested iterables
GHSA-j4jc-cq9h-xrhr 3.3.1 HIGH Apache Airflow Backfill API parser discrepancy permits cross-DAG authorization bypass
GHSA-q4c3-7575-55j2 3.3.1 HIGH Apache Airflow scheduler unsafely deserializes human-in-the-loop task next_kwargs
PYSEC-2026-3705 3.3.1 MEDIUM 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 3.3.1 MEDIUM 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 3.3.1 HIGH 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 3.3.1 HIGH 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 3.3.1 MEDIUM 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 3.3.1 HIGH 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 3.3.1 MEDIUM 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 3.3.1 MEDIUM 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 3.3.1 HIGH 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 3.3.1 MEDIUM 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 3.3.1 MEDIUM 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 3.3.1 MEDIUM 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 3.3.2 MEDIUM 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 3.3.2 CRITICAL 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

Step 4: Intermediate Releases (21)

Chronological progression of releases incorporated in this upgrade.

v3.4.0 Breaking Nov 06, 2026
Impact: 9/10 View notes →
v3.3.2 Breaking Sep 17, 2026
Impact: 9/10 View notes →
v3.3.1 Aug 12, 2026
Impact: 9/10 View notes →
v3.3.0 Breaking Jul 06, 2026
Impact: 9/10 View notes →
vhelm-chart/1.22.0 Jun 13, 2026
Impact: 5/10 View notes →
v3.2.2 May 29, 2026
Impact: 9/10 View notes →
v3.2.1 Apr 22, 2026
Impact: 9/10 View notes →
v3.2.0 Breaking Apr 07, 2026
Impact: 10/10 View notes →
v3.1.8 Mar 11, 2026
Impact: 9/10 View notes →
v3.1.7 Feb 04, 2026
Impact: 3/10 View notes →
v3.1.6 Jan 13, 2026
Impact: 5/10 View notes →
v3.1.5 Dec 10, 2025
Impact: 4/10 View notes →
v3.1.3 Nov 14, 2025
Impact: 9/10 View notes →
v3.1.2 Nov 05, 2025
Impact: 4/10 View notes →
v3.1.1 Oct 27, 2025
Impact: 4/10 View notes →
v3.1.0 Sep 25, 2025
Impact: 10/10 View notes →
v3.0.6 Aug 29, 2025
Impact: 4/10 View notes →
v3.0.5 Aug 20, 2025
Impact: 4/10 View notes →
v3.0.4 Aug 08, 2025
Impact: 4/10 View notes →
v3.0.3 Jul 14, 2025
Impact: 5/10 View notes →
v3.0.2 Breaking Jun 10, 2025
Impact: 5/10 View notes →
Explore More Apache Airflow Intelligence

Track real-time updates, compare against alternatives, or audit CVEs.

Overview Latest Release Security Hub Alternatives