# Migration Context: Apache Airflow v1 -> v2 # Generated by Changelogs.us: 2026-11-30T03:04:46.690447+00:00 # Target Version: 2.11.0 # Upgrade Command: N/A # Breaking Changes: 6 # Security Fixes: 96 ## Executive Summary Upgrading Apache Airflow from 1 to 2 involves 50 releases with risk rating High. ## Breaking Changes List: - [v2.1.1] - Pins docutils to <0.17 until breaking behaviour is fixed (#16133): - [v2.2.0] - Pins ``docutils`` to <0.17 until breaking behaviour is fixed (#16133): - [v2.3.4] - Limit Flask to <2.3 in the wake of 2.2 breaking our tests (#25511): - [v2.6.0] This is potentially a breaking change for any custom trigger implementations that override the ``cleanup()``: - [v2.10.0] by events that occur when the DAG is active. While this is a breaking change,: - [v2.10.0] try number will no longer be incremented. Airflow assumes that tasks are always run after being scheduled by the scheduler, so we do not regard this as a breaking change.: ## Patched Vulnerabilities (CVEs): - [GHSA-m6h2-jx9v-58w6] (Severity: MEDIUM) in v2.1.2: Missing Authorization in Apache Airflow - [PYSEC-2021-122] (Severity: UNRATED) in v2.1.2: 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] (Severity: CRITICAL) in v2.1.3: Missing Authentication for Critical Function in Apache Airflow - [PYSEC-2021-326] (Severity: UNRATED) in v2.1.3: 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] (Severity: MEDIUM) in v2.2.0: Improper Privilege Management in apache-airflow - [GHSA-3v7g-4pg3-7r6j] (Severity: HIGH) in v2.2.4: OS Command injection in Apache Airflow - [PYSEC-2022-30] (Severity: UNRATED) in v2.2.4: 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] (Severity: MEDIUM) in v2.3.0: OS Command Injection in Apache Airflow - [GHSA-7wqf-h36w-47mc] (Severity: CRITICAL) in v2.3.0: OS Command Injection in Apache Airflow - [GHSA-rmf2-pwfq-h75j] (Severity: CRITICAL) in v2.3.0: OS Command Injection in Apache Airflow - [PYSEC-2026-267] (Severity: CRITICAL) in v2.3.0: OS Command Injection in Apache Airflow - [PYSEC-2026-270] (Severity: CRITICAL) in v2.3.0: OS Command Injection in Apache Airflow - [PYSEC-2026-770] (Severity: MEDIUM) in v2.3.0: OS Command Injection in Apache Airflow - [GHSA-fvw2-2pf7-77vw] (Severity: HIGH) in v2.3.1: Apache Airflow subject to Exposure of Sensitive Information - [PYSEC-2022-42981] (Severity: UNRATED) in v2.3.1: 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] (Severity: UNRATED) in v2.3.2: 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] (Severity: MEDIUM) in v2.3.4: Apache Airflow exposes arbitrary file content - [PYSEC-2022-261] (Severity: UNRATED) in v2.3.4: 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] (Severity: HIGH) in v2.4.0: Apache Airflow vulnerable to OS Command Injection via example DAGs - [PYSEC-2022-42982] (Severity: UNRATED) in v2.4.0: 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] (Severity: UNRATED) in v2.4.2: 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] (Severity: UNRATED) in v2.4.2: In Apache Airflow versions prior to 2.4.2, there was an open redirect in the webserver's `/confirm` endpoint. - [GHSA-rg94-84xj-7gq3] (Severity: MEDIUM) in v2.4.3: Apache Airflow Contains Open Redirect - [PYSEC-2022-42984] (Severity: UNRATED) in v2.4.3: In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. - [PYSEC-2023-136] (Severity: UNRATED) in v2.4.3: 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] (Severity: CRITICAL) in v2.5.1: Command Injection in Apache Airflow and Apache Airflow MySQL Provider - [PYSEC-2026-268] (Severity: CRITICAL) in v2.5.1: Command Injection in Apache Airflow and Apache Airflow MySQL Provider - [PYSEC-2023-2] (Severity: UNRATED) in v2.5.2: 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] (Severity: MEDIUM) in v2.6.0: Apache Airflow vulnerable to stored Cross-site Scripting - [PYSEC-2023-134] (Severity: UNRATED) in v2.6.0: 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] (Severity: UNRATED) in v2.6.0: Privilege Context Switching Error vulnerability in Apache Software Foundation Apache Airflow.This issue affects Apache Airflow: before 2.6.0. - [PYSEC-2023-60] (Severity: UNRATED) in v2.6.0: 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] (Severity: MEDIUM) in v2.6.1: 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] (Severity: MEDIUM) in v2.6.1: 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] (Severity: UNRATED) in v2.6.2: 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] (Severity: MEDIUM) in v2.6.3: Apache Airflow Incorrect Authorization vulnerability - [GHSA-3h4m-m55v-gx4m] (Severity: MEDIUM) in v2.6.3: Apache Airflow Improper Input Validation vulnerability - [GHSA-5946-8p38-vffp] (Severity: MEDIUM) in v2.6.3: Apache Airflow Improper Input Validation vulnerability - [GHSA-ggwr-4vr8-g7wv] (Severity: MEDIUM) in v2.6.3: Apache Airflow Path Traversal vulnerability - [GHSA-xvw9-3mhm-xjqq] (Severity: MEDIUM) in v2.6.3: Apache Airflow information disclosure vulnerability - [PYSEC-2023-103] (Severity: UNRATED) in v2.6.3: 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] (Severity: UNRATED) in v2.6.3: 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] (Severity: UNRATED) in v2.6.3: 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] (Severity: UNRATED) in v2.6.3: 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] (Severity: UNRATED) in v2.6.3: 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] (Severity: HIGH) in v2.7.0: 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] (Severity: MEDIUM) in v2.7.0: 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] (Severity: MEDIUM) in v2.7.0: Apache Airflow missing Certificate Validation - [PYSEC-2026-1131] (Severity: HIGH) in v2.7.0: Apache Airflow Celery provider Insertion of Sensitive Information into Log File vulnerability - [GHSA-mjqh-v5f2-g2mw] (Severity: MEDIUM) in v2.7.1: Apache Airflow information exposure vulnerability - [GHSA-wpg8-mf6h-gm92] (Severity: MEDIUM) in v2.7.1: Apache Airflow Incorrect Authorization vulnerability - [PYSEC-2023-170] (Severity: UNRATED) in v2.7.1: 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] (Severity: UNRATED) in v2.7.1: 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] (Severity: MEDIUM) in v2.7.2: Apache Airflow vulnerable to sensitive information exposure - [GHSA-9qqg-mh7c-chfq] (Severity: MEDIUM) in v2.7.2: Apache Airflow vulnerable to Exposure of Sensitive Information - [GHSA-cgx2-rrmr-jx43] (Severity: MEDIUM) in v2.7.2: Apache Airflow vulnerable to sensitive information exposure when users list warnings for all DAGs - [GHSA-fpxx-xv4c-gxqp] (Severity: MEDIUM) in v2.7.2: Apache Airflow vulnerable to sensitive information exposure when expose-config is set to non-sensitive-only - [GHSA-j3w8-2p2h-mrr9] (Severity: MEDIUM) in v2.7.2: Apache Airflow vulnerable to privilege escalation - [PYSEC-2023-197] (Severity: UNRATED) in v2.7.2: 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] (Severity: MEDIUM) in v2.7.2: 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] (Severity: MEDIUM) in v2.7.2: 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] (Severity: MEDIUM) in v2.7.2: 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] (Severity: MEDIUM) in v2.7.3: Apache Airflow allows authenticated and DAG-view authorized users to modify some DAG run detail values when submitting notes - [GHSA-r7x6-xfcm-3mxv] (Severity: MEDIUM) in v2.7.3: Apache Airflow vulnerable to Exposure of Sensitive Information to an Unauthorized Actor - [PYSEC-2023-231] (Severity: UNRATED) in v2.7.3: 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] (Severity: UNRATED) in v2.7.3: 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] (Severity: MEDIUM) in v2.8.0: Apache Airflow Improper Access Control vulnerability - [GHSA-6m9r-7wrx-xmr6] (Severity: MEDIUM) in v2.8.0: Apache Airflow Cross-Site Request Forgery vulnerability - [GHSA-8f57-wcmg-4jmh] (Severity: MEDIUM) in v2.8.0: Apache Airflow vulnerable to Exposure of Resource to Wrong Sphere - [PYSEC-2023-265] (Severity: MEDIUM) in v2.8.0: 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] (Severity: MEDIUM) in v2.8.0: 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] (Severity: UNRATED) in v2.8.1: 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] (Severity: UNRATED) in v2.8.1: 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] (Severity: MEDIUM) in v2.8.2: Apache Airflow: DAG Code and Import Error Permissions Ignored - [GHSA-6xwf-xvf3-v459] (Severity: MEDIUM) in v2.8.2: Apache Airflow: Incorrect Default Permissions in audit logs for Ops and Viewers users - [PYSEC-2024-245] (Severity: UNRATED) in v2.8.2: 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] (Severity: UNRATED) in v2.8.2: 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] (Severity: MEDIUM) in v2.8.4: Apache Airflow Improper Preservation of Permissions vulnerability - [PYSEC-2026-1132] (Severity: MEDIUM) in v2.8.4: Apache Airflow Improper Preservation of Permissions vulnerability - [GHSA-2522-mrjc-m688] (Severity: MEDIUM) in v2.9.0: Apache Airflow: Sensitive configuration for providers displayed when "non-sensitive-only" config used - [PYSEC-2026-1128] (Severity: MEDIUM) in v2.9.0: Apache Airflow: Sensitive configuration for providers displayed when "non-sensitive-only" config used - [GHSA-52gm-qmg3-r4qp] (Severity: MEDIUM) in v2.9.1: Apache Airflow: XSS vulnerability in Task Instance Log/Log Details - [GHSA-9xpj-62mm-24h2] (Severity: LOW) in v2.9.2: Apache Airflow does not return the "Cache-Control" header for dynamic content - [PYSEC-2024-195] (Severity: MEDIUM) in v2.9.2: 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] (Severity: HIGH) in v2.9.3: Apache Airflow has DAG Author Code Execution possibility in airflow-scheduler - [GHSA-j482-47xf-p25c] (Severity: MEDIUM) in v2.9.3: Apache Airflow Potential Cross-site Scripting Vulnerability - [PYSEC-2024-189] (Severity: MEDIUM) in v2.9.3: 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] (Severity: HIGH) in v2.9.3: 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] (Severity: MEDIUM) in v2.10.0: Apache Airflow Cross-site Scripting Vulnerability - [PYSEC-2024-181] (Severity: MEDIUM) in v2.10.0: 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] (Severity: HIGH) in v2.10.1: Apache Airflow vulnerable to Execution with Unnecessary Privileges - [GHSA-c392-whpc-vfpr] (Severity: HIGH) in v2.10.1: Apache Airflow vulnerable to Improper Encoding or Escaping of Output - [PYSEC-2024-212] (Severity: UNRATED) in v2.10.1: 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] (Severity: MEDIUM) in v2.10.3: Apache Airflow vulnerable to Insertion of Sensitive Information Into Sent Data - [PYSEC-2024-182] (Severity: UNRATED) in v2.10.3: 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] (Severity: MEDIUM) in v2.10.3: Apache Airflow vulnerable to Insertion of Sensitive Information Into Sent Data ## Instructions for AI Assistant: When migrating user code from Apache Airflow 1 to 2, scan for the deprecated APIs and breaking changes above and refactor code to use modern v2.11.0 idioms.