Data Engineering & Analytics MIGRATION GUIDE HIGH MIGRATION EFFORT

Apache Airflow 1 to 2 Migration Guide

Upgrading Apache Airflow from v1 to v2 spans 50 intermediate releases with 6 breaking changes and 96 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
9/10
Peak architectural complexity
Resolved CVEs
96
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 2.11.0.

Step 2: Breaking Changes & Incompatible APIs (6)

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

0 / 6 resolved
v2.1.1
Inspect 2.1.1 release notes →
v2.2.0
Inspect 2.2.0 release notes →
v2.3.4
Inspect 2.3.4 release notes →
v2.6.0
Inspect 2.6.0 release notes →
v2.10.0
Inspect 2.10.0 release notes →
v2.10.0
Inspect 2.10.0 release notes →

Step 3: Patched Security Advisories (96)

Upgrading to v2 resolves the following known vulnerabilities.

All Apache Airflow CVEs →
Advisory ID Fixed in Version Severity (CVSS) Vulnerability Summary
GHSA-m6h2-jx9v-58w6 2.1.2 MEDIUM Missing Authorization in Apache Airflow
PYSEC-2021-122 2.1.2 UNRATED If remote logging is not used, the worker (in the case of CeleryExecutor) or the scheduler (in the case of LocalExecutor) runs a Flask logging server and is listening on a specific port and also binds
GHSA-h88f-r7cw-8fv3 2.1.3 CRITICAL Missing Authentication for Critical Function in Apache Airflow
PYSEC-2021-326 2.1.3 UNRATED The variable import endpoint was not protected by authentication in Airflow >=2.0.0, <2.1.3. This allowed unauthenticated users to hit that endpoint to add/modify Airflow variables used in DAGs, poten
GHSA-4jh2-3c85-q67h 2.2.0 MEDIUM Improper Privilege Management in apache-airflow
GHSA-3v7g-4pg3-7r6j 2.2.4 HIGH OS Command injection in Apache Airflow
PYSEC-2022-30 2.2.4 UNRATED In Apache Airflow, prior to version 2.2.4, some example DAGs did not properly sanitize user-provided params, making them susceptible to OS Command Injection from the web UI.
GHSA-45r6-j3cc-6mxx 2.3.0 MEDIUM OS Command Injection in Apache Airflow
GHSA-7wqf-h36w-47mc 2.3.0 CRITICAL OS Command Injection in Apache Airflow
GHSA-rmf2-pwfq-h75j 2.3.0 CRITICAL OS Command Injection in Apache Airflow
PYSEC-2026-267 2.3.0 CRITICAL OS Command Injection in Apache Airflow
PYSEC-2026-270 2.3.0 CRITICAL OS Command Injection in Apache Airflow
PYSEC-2026-770 2.3.0 MEDIUM OS Command Injection in Apache Airflow
GHSA-fvw2-2pf7-77vw 2.3.1 HIGH Apache Airflow subject to Exposure of Sensitive Information
PYSEC-2022-42981 2.3.1 UNRATED A vulnerability in UI of Apache Airflow allows an attacker to view unmasked secrets in rendered template values for tasks which were not executed (for example when they were depending on past and prev
PYSEC-2023-3 2.3.2 UNRATED Improper Input Validation vulnerability in Apache Software Foundation Apache Airflow Drill Provider.This issue affects Apache Airflow Drill Provider: before 2.3.2.
GHSA-q8h9-pqcx-59hw 2.3.4 MEDIUM Apache Airflow exposes arbitrary file content
PYSEC-2022-261 2.3.4 UNRATED In Apache Airflow prior to 2.3.4, an insecure umask was configured for numerous Airflow components when running with the `--daemon` flag which could result in a race condition giving world-writable fi
GHSA-6pw3-8h9w-32gc 2.4.0 HIGH Apache Airflow vulnerable to OS Command Injection via example DAGs
PYSEC-2022-42982 2.4.0 UNRATED A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arbitrary commands via manually provided run_id parameter. This issue affects Apach
PYSEC-2022-42970 2.4.2 UNRATED In Apache Airflow versions prior to 2.4.2, the "Trigger DAG with config" screen was susceptible to XSS attacks via the `origin` query argument.
PYSEC-2022-42971 2.4.2 UNRATED In Apache Airflow versions prior to 2.4.2, there was an open redirect in the webserver's `/confirm` endpoint.
GHSA-rg94-84xj-7gq3 2.4.3 MEDIUM Apache Airflow Contains Open Redirect
PYSEC-2022-42984 2.4.3 UNRATED In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint.
PYSEC-2023-136 2.4.3 UNRATED Improper Input Validation vulnerability in Apache Software Foundation Apache Airflow Drill Provider. Apache Airflow Drill Provider is affected by a vulnerability that allows an attacker to pass in ma
GHSA-c732-xvv8-g94c 2.5.1 CRITICAL Command Injection in Apache Airflow and Apache Airflow MySQL Provider
PYSEC-2026-268 2.5.1 CRITICAL Command Injection in Apache Airflow and Apache Airflow MySQL Provider
PYSEC-2023-2 2.5.2 UNRATED Generation of Error Message Containing Sensitive Information vulnerability in Apache Software Foundation Apache Airflow.This issue affects Apache Airflow: before 2.5.2.
GHSA-vcf6-3wv2-5vcr 2.6.0 MEDIUM Apache Airflow vulnerable to stored Cross-site Scripting
PYSEC-2023-134 2.6.0 UNRATED Execution with Unnecessary Privileges, : Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Software Foundation Apache Airflow.The "Run Task" feature enables authentica
PYSEC-2023-59 2.6.0 UNRATED Privilege Context Switching Error vulnerability in Apache Software Foundation Apache Airflow.This issue affects Apache Airflow: before 2.6.0.
PYSEC-2023-60 2.6.0 UNRATED Task instance details page in the UI is vulnerable to a stored XSS.This issue affects Apache Airflow: before 2.6.0.
GHSA-mg2x-mggj-6955 2.6.1 MEDIUM Apache Airflow CNCF Kubernetes provider, Apache Airflow: Kubernetes configuration file saved without encryption in the Metadata and logged as plain text in the Triggerer service
PYSEC-2026-2350 2.6.1 MEDIUM Apache Airflow CNCF Kubernetes provider, Apache Airflow: Kubernetes configuration file saved without encryption in the Metadata and logged as plain text in the Triggerer service
PYSEC-2023-89 2.6.2 UNRATED In Apache Airflow, some potentially sensitive values were being shown to the user in certain situations. This vulnerability is mitigated by the fact configuration is not shown in the UI by default (o
GHSA-2h84-3crq-vgfj 2.6.3 MEDIUM Apache Airflow Incorrect Authorization vulnerability
GHSA-3h4m-m55v-gx4m 2.6.3 MEDIUM Apache Airflow Improper Input Validation vulnerability
GHSA-5946-8p38-vffp 2.6.3 MEDIUM Apache Airflow Improper Input Validation vulnerability
GHSA-ggwr-4vr8-g7wv 2.6.3 MEDIUM Apache Airflow Path Traversal vulnerability
GHSA-xvw9-3mhm-xjqq 2.6.3 MEDIUM Apache Airflow information disclosure vulnerability
PYSEC-2023-103 2.6.3 UNRATED Apache Airflow, versions before 2.6.3, is affected by a vulnerability that allows an unauthorized actor to gain access to sensitive information in Connection edit view. This vulnerability is considere
PYSEC-2023-104 2.6.3 UNRATED Apache Airflow, versions before 2.6.3, is affected by a vulnerability that allows an attacker to perform unauthorized file access outside the intended directory structure by manipulating the run_id pa
PYSEC-2023-105 2.6.3 UNRATED Apache Airflow, versions before 2.6.3, is affected by a vulnerability that allows an attacker to cause a service disruption by manipulating the run_id parameter. This vulnerability is considered low s
PYSEC-2023-106 2.6.3 UNRATED Apache Airflow, versions before 2.6.3, has a vulnerability where an authenticated user can use crafted input to make the current request hang. It is recommended to upgrade to a version that is not aff
PYSEC-2023-119 2.6.3 UNRATED Apache Airflow, versions before 2.6.3, is affected by a vulnerability that allows unauthorized read access to a DAG through the URL. It is recommended to upgrade to a version that is not affected
PYSEC-2023-152 2.7.0 HIGH Apache Airflow, in versions prior to 2.7.0, contains a security vulnerability that can be exploited by an authenticated user possessing Connection edit privileges. This vulnerability allows the user t
PYSEC-2023-218 2.7.0 MEDIUM Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Airflow.This issue affects Apache Airflow from 2.4.0 to 2.7.0. Sensitive configuration information has been exposed
PYSEC-2026-1130 2.7.0 MEDIUM Apache Airflow missing Certificate Validation
PYSEC-2026-1131 2.7.0 HIGH Apache Airflow Celery provider Insertion of Sensitive Information into Log File vulnerability
GHSA-mjqh-v5f2-g2mw 2.7.1 MEDIUM Apache Airflow information exposure vulnerability
GHSA-wpg8-mf6h-gm92 2.7.1 MEDIUM Apache Airflow Incorrect Authorization vulnerability
PYSEC-2023-170 2.7.1 UNRATED Apache Airflow, versions before 2.7.1, is affected by a vulnerability that allows authenticated and DAG-view authorized Users to modify some DAG run detail values when submitting notes. This could hav
PYSEC-2023-171 2.7.1 UNRATED Apache Airflow, versions before 2.7.1, is affected by a vulnerability that allows authenticated users who have access to see the task/dag in the UI, to craft a URL, which could lead to unmasking the s
GHSA-32wr-qqw6-5mfp 2.7.2 MEDIUM Apache Airflow vulnerable to sensitive information exposure
GHSA-9qqg-mh7c-chfq 2.7.2 MEDIUM Apache Airflow vulnerable to Exposure of Sensitive Information
GHSA-cgx2-rrmr-jx43 2.7.2 MEDIUM Apache Airflow vulnerable to sensitive information exposure when users list warnings for all DAGs
GHSA-fpxx-xv4c-gxqp 2.7.2 MEDIUM Apache Airflow vulnerable to sensitive information exposure when expose-config is set to non-sensitive-only
GHSA-j3w8-2p2h-mrr9 2.7.2 MEDIUM Apache Airflow vulnerable to privilege escalation
PYSEC-2023-197 2.7.2 UNRATED Apache Airflow, versions before 2.7.2, has a vulnerability that allows an authorized user who has access to read specific DAGs only, to read information about task instances in other DAGs. Users of Ap
PYSEC-2023-202 2.7.2 MEDIUM Apache Airflow, versions prior to 2.7.2, contains a security vulnerability that allows authenticated users of Airflow to list warnings for all DAGs, even if the user had no permission to see those DAG
PYSEC-2023-203 2.7.2 MEDIUM Apache Airflow, in versions prior to 2.7.2, contains a security vulnerability that allows an authenticated user with limited access to some DAGs, to craft a request that could give the user write acce
PYSEC-2023-204 2.7.2 MEDIUM Apache Airflow, versions 2.7.0 and 2.7.1, is affected by a vulnerability that allows an authenticated user to retrieve sensitive configuration information when the "expose_config" option is set to "n
GHSA-hm9r-7f84-25c9 2.7.3 MEDIUM Apache Airflow allows authenticated and DAG-view authorized users to modify some DAG run detail values when submitting notes
GHSA-r7x6-xfcm-3mxv 2.7.3 MEDIUM Apache Airflow vulnerable to Exposure of Sensitive Information to an Unauthorized Actor
PYSEC-2023-231 2.7.3 UNRATED Apache Airflow, versions before 2.7.3, has a vulnerability that allows an authorized user who has access to read specific DAGs only, to read information about task instances in other DAGs. This is a
PYSEC-2023-232 2.7.3 UNRATED We failed to apply CVE-2023-40611 in 2.7.1 and this vulnerability was marked as fixed then. Apache Airflow, versions before 2.7.3, is affected by a vulnerability that allows authenticated and DAG-vi
GHSA-5938-79hg-xh3q 2.8.0 MEDIUM Apache Airflow Improper Access Control vulnerability
GHSA-6m9r-7wrx-xmr6 2.8.0 MEDIUM Apache Airflow Cross-Site Request Forgery vulnerability
GHSA-8f57-wcmg-4jmh 2.8.0 MEDIUM Apache Airflow vulnerable to Exposure of Resource to Wrong Sphere
PYSEC-2023-265 2.8.0 MEDIUM Apache Airflow, in versions prior to 2.8.0, contains a security vulnerability that allows an authenticated user with limited access to some DAGs, to craft a request that could give the user write acce
PYSEC-2023-267 2.8.0 MEDIUM Apache Airflow, versions before 2.8.0, is affected by a vulnerability that allows an authenticated user without the variable edit permission, to update a variable. This flaw compromises the integrity
PYSEC-2024-13 2.8.1 UNRATED Apache Airflow, versions before 2.8.1, have a vulnerability that allows a potential attacker to poison the XCom data by bypassing the protection of "enable_xcom_pickling=False" configuration setting r
PYSEC-2024-14 2.8.1 UNRATED Apache Airflow, versions before 2.8.1, have a vulnerability that allows an authenticated user to access the source code of a DAG to which they don't have access. This vulnerability is considered low s
GHSA-6v6w-h8m6-7mv2 2.8.2 MEDIUM Apache Airflow: DAG Code and Import Error Permissions Ignored
GHSA-6xwf-xvf3-v459 2.8.2 MEDIUM Apache Airflow: Incorrect Default Permissions in audit logs for Ops and Viewers users
PYSEC-2024-245 2.8.2 UNRATED Apache Airflow, versions before 2.8.2, has a vulnerability that allows authenticated users to view DAG code and import errors of DAGs they do not have permission to view through the API and the UI. U
PYSEC-2024-42 2.8.2 UNRATED Apache Airflow, versions before 2.8.2, has a vulnerability that allows authenticated Ops and Viewers users to view all information on audit logs, including dag names and usernames they were not permit
GHSA-cff3-5qrp-hqx7 2.8.4 MEDIUM Apache Airflow Improper Preservation of Permissions vulnerability
PYSEC-2026-1132 2.8.4 MEDIUM Apache Airflow Improper Preservation of Permissions vulnerability
GHSA-2522-mrjc-m688 2.9.0 MEDIUM Apache Airflow: Sensitive configuration for providers displayed when "non-sensitive-only" config used
PYSEC-2026-1128 2.9.0 MEDIUM Apache Airflow: Sensitive configuration for providers displayed when "non-sensitive-only" config used
GHSA-52gm-qmg3-r4qp 2.9.1 MEDIUM Apache Airflow: XSS vulnerability in Task Instance Log/Log Details
GHSA-9xpj-62mm-24h2 2.9.2 LOW Apache Airflow does not return the "Cache-Control" header for dynamic content
PYSEC-2024-195 2.9.2 MEDIUM Use of Web Browser Cache Containing Sensitive Information vulnerability in Apache Airflow. Airflow did not return "Cache-Control" header for dynamic content, which in case of some browsers could res
GHSA-g5hv-r743-v8pm 2.9.3 HIGH Apache Airflow has DAG Author Code Execution possibility in airflow-scheduler
GHSA-j482-47xf-p25c 2.9.3 MEDIUM Apache Airflow Potential Cross-site Scripting Vulnerability
PYSEC-2024-189 2.9.3 MEDIUM Apache Airflow versions before 2.9.3 have a vulnerability that allows an authenticated attacker to inject a malicious link when installing a provider. Users are recommended to upgrade to version 2.9.3
PYSEC-2024-190 2.9.3 HIGH Apache Airflow 2.4.0, and versions before 2.9.3, has a vulnerability that allows authenticated DAG authors to craft a doc_md parameter in a way that could execute arbitrary code in the scheduler conte
GHSA-w7cp-g8v7-r54m 2.10.0 MEDIUM Apache Airflow Cross-site Scripting Vulnerability
PYSEC-2024-181 2.10.0 MEDIUM Apache Airflow, versions before 2.10.0, have a vulnerability that allows the developer of a malicious provider to execute a cross-site scripting attack when clicking on a provider documentation link.
GHSA-92xg-gmrq-5c3w 2.10.1 HIGH Apache Airflow vulnerable to Execution with Unnecessary Privileges
GHSA-c392-whpc-vfpr 2.10.1 HIGH Apache Airflow vulnerable to Improper Encoding or Escaping of Output
PYSEC-2024-212 2.10.1 UNRATED Apache Airflow versions before 2.10.1 have a vulnerability that allows DAG authors to add local settings to the DAG folder and get it executed by the scheduler, where the scheduler is not supposed to
GHSA-j857-2pwm-jjmm 2.10.3 MEDIUM Apache Airflow vulnerable to Insertion of Sensitive Information Into Sent Data
PYSEC-2024-182 2.10.3 UNRATED Apache Airflow versions before 2.10.3 contain a vulnerability that could expose sensitive configuration variables in task logs. This vulnerability allows DAG authors to unintentionally or intentionall
PYSEC-2026-1134 2.10.3 MEDIUM Apache Airflow vulnerable to Insertion of Sensitive Information Into Sent Data

Step 4: Intermediate Releases (50)

Chronological progression of releases incorporated in this upgrade.

v2.11.0 May 20, 2025
Impact: 9/10 View notes →
v3.0.1 May 12, 2025
Impact: 5/10 View notes →
v3.0.0 Apr 22, 2025
Impact: 9/10 View notes →
v2.10.5 Feb 10, 2025
Impact: 6/10 View notes →
v2.10.4 Dec 16, 2024
Impact: 4/10 View notes →
v2.10.3 Nov 05, 2024
Impact: 4/10 View notes →
v2.10.2 Sep 20, 2024
Impact: 3/10 View notes →
v2.10.1 Sep 06, 2024
Impact: 3/10 View notes →
v2.10.0 Breaking Aug 16, 2024
Impact: 9/10 View notes →
v2.9.3 Jul 16, 2024
Impact: 6/10 View notes →
v2.9.2 Jun 10, 2024
Impact: 3/10 View notes →
v2.9.1 May 06, 2024
Impact: 6/10 View notes →
v2.9.0 Apr 08, 2024
Impact: 9/10 View notes →
v2.8.4 Mar 25, 2024
Impact: 3/10 View notes →
v2.8.3 Mar 11, 2024
Impact: 4/10 View notes →
v2.8.2 Feb 26, 2024
Impact: 9/10 View notes →
v2.8.1 Jan 19, 2024
Impact: 7/10 View notes →
v2.8.0 Dec 18, 2023
Impact: 9/10 View notes →
v2.7.3 Nov 06, 2023
Impact: 3/10 View notes →
v2.7.2 Oct 12, 2023
Impact: 4/10 View notes →
v2.7.1 Sep 07, 2023
Impact: 8/10 View notes →
v2.7.0 Aug 18, 2023
Impact: 5/10 View notes →
v2.6.3 Jul 10, 2023
Impact: 5/10 View notes →
v2.6.2 Jun 17, 2023
Impact: 5/10 View notes →
v2.6.1 May 16, 2023
Impact: 5/10 View notes →
v2.6.0 Breaking Apr 30, 2023
Impact: 7/10 View notes →
v2.5.3 Apr 01, 2023
Impact: 5/10 View notes →
v2.5.2 Mar 15, 2023
Impact: 5/10 View notes →
v2.5.1 Jan 20, 2023
Impact: 5/10 View notes →
v2.5.0 Dec 02, 2022
Impact: 5/10 View notes →
v2.4.3 Nov 14, 2022
Impact: 5/10 View notes →
v2.4.2 Oct 24, 2022
Impact: 5/10 View notes →
v2.4.1 Sep 30, 2022
Impact: 5/10 View notes →
v2.4.0 Sep 19, 2022
Impact: 5/10 View notes →
v2.3.4 Breaking Aug 23, 2022
Impact: 7/10 View notes →
v2.3.3 Jul 09, 2022
Impact: 5/10 View notes →
v2.3.2 Jun 04, 2022
Impact: 5/10 View notes →
v2.3.1 May 25, 2022
Impact: 5/10 View notes →
v2.3.0 May 01, 2022
Impact: 5/10 View notes →
v2.2.5 Apr 04, 2022
Impact: 5/10 View notes →
v2.2.4 Feb 22, 2022
Impact: 5/10 View notes →
v2.2.3 Dec 21, 2021
Impact: 5/10 View notes →
v2.2.2 Nov 15, 2021
Impact: 5/10 View notes →
v2.2.1 Oct 30, 2021
Impact: 5/10 View notes →
v2.2.0 Breaking Oct 11, 2021
Impact: 7/10 View notes →
v2.1.4 Sep 18, 2021
Impact: 5/10 View notes →
v2.1.3 Sep 11, 2021
Impact: 5/10 View notes →
v2.1.2 Jul 14, 2021
Impact: 5/10 View notes →
v2.1.1 Breaking Jul 02, 2021
Impact: 7/10 View notes →
v2.0.2 Apr 19, 2021
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