# CVE-2026-120353: Apache Airflow TaskFlow decorators template injection

Source: https://junglewise.ai/threats/cve-2026-120353-the-apache-airflow-taskflow-decorators-task-bash-task-sql-task  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-26. Updated: 2026-11-26  
License: CC BY 4.0 with a link back

CVE-2026-120353 · Severity: info · Published 2026-11-26

Apache Airflow's TaskFlow decorators for bash, SQL, Kubernetes, and AI tasks re-render Jinja templates a second time on the worker, allowing template injection. An attacker who can trigger a DAG run or control input text passed to these decorators could execute arbitrary commands on the worker node and read sensitive connection credentials and variables.

Technologies: [Apache Airflow](https://junglewise.ai/threats/technologies/airflow). Vendors: [Apache](https://junglewise.ai/threats/vendors/apache).

## Quick answers

**Is CVE-2026-120353 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-120353 being exploited in the wild.

**How severe is CVE-2026-120353?** Informational severity, published 26 November 2026.

**Which products and versions are affected?** Apache Airflow all versions with affected decorators; Apache Airflow-Providers-Cncf-Kubernetes before 11.0.0; Apache Airflow-Providers-Common-Ai before 1.2.0; Apache Airflow-Providers-Common-Sql before 3.0.0; and 1 more.

**Is there a fix for CVE-2026-120353?** Yes: fixed in apache-airflow-providers-standard 1.22.0, apache-airflow-providers-cncf-kubernetes 11.0.0, apache-airflow-providers-common-sql 3.0.0, apache-airflow-providers-common-ai 1.2.0. Until then: Avoid passing user-supplied input or DAG run configuration directly into env, op_args, op_kwargs, parameters, or prompt fields of affected decorators; use function arguments instead and reference them by name in returned templates rather than f-string formatting.</anigation>
<parameter name="timeline">[
  {
    "kind": "disclosed",
    "at": "2026-11-26",
    "note": "CVE-2026-120353 published"
  },
  {
    "kind": "patched",
    "at": "2026-11-02",
    "note": "Fix merged into Apache Airflow main branch (PR #76244)"
  }
] Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-120353 attacked?** It is attacked over the network or with local access, in a software library.

**Am I affected by CVE-2026-120353?** Check whether you run Apache Airflow, Apache Airflow-Providers-Cncf-Kubernetes, Apache Airflow-Providers-Common-Ai or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in apache-airflow-providers-standard 1.22.0, apache-airflow-providers-cncf-kubernetes 11.0.0, apache-airflow-providers-common-sql 3.0.0, apache-airflow-providers-common-ai 1.2.0

Avoid passing user-supplied input or DAG run configuration directly into env, op_args, op_kwargs, parameters, or prompt fields of affected decorators; use function arguments instead and reference them by name in returned templates rather than f-string formatting.</anigation>
<parameter name="timeline">[
  {
    "kind": "disclosed",
    "at": "2026-11-26",
    "note": "CVE-2026-120353 published"
  },
  {
    "kind": "patched",
    "at": "2026-11-02",
    "note": "Fix merged into Apache Airflow main branch (PR #76244)"
  }
]

## Technical details

The affected TaskFlow decorators (@task.bash, @task.sql, @task.kubernetes_cmd, @task.llm, @task.agent, @task.llm_sql, @task.llm_branch, @task.llm_file_analysis, @task.llm_schema_compare) call render_template_fields() inside execute() after the task runner has already performed the first template rendering pass, causing a second render of environment variables, op_args, op_kwargs, parameters, and prompt fields. An attacker with DAG trigger permissions or who controls text passed into these decorators can inject Jinja template syntax that executes on the worker, allowing command execution and credential theft.

## Affected products

- Apache Airflow all versions with affected decorators
- Apache airflow-providers-standard before 1.22.0
- Apache airflow-providers-cncf-kubernetes before 11.0.0
- Apache airflow-providers-common-sql before 3.0.0
- Apache airflow-providers-common-ai before 1.2.0

## References

- [https://pypi.python.org/](https://pypi.python.org/)
- [https://github.com/apache/airflow/pull/76244](https://github.com/apache/airflow/pull/76244)

## Related threats

- [Apache Airflow unauthorized DAG run disclosure via asset events API](https://junglewise.ai/threats/cve-2026-120351-in-apache-airflow-2-4-0-through-3-3-x-an-authenticated-user-who)
- [Apache Airflow incomplete deserialization check bypass in scheduler](https://junglewise.ai/threats/cve-2026-96285-apache-airflow-3-3-1-shipped-a-fix-for-that-checks-the-scheduler)
- [Apache Airflow scheduler XCom deserialization privilege escalation](https://junglewise.ai/threats/cve-2026-86829-apache-airflow-s-scheduler-fully-deserializes-xcom-values-written)
- [Apache Airflow CLI audit log secrets exposure](https://junglewise.ai/threats/cve-2026-86468-apache-airflow-s-cli-records-its-arguments-in-the-audit-log-but)
- [Apache Airflow unsafe deserialization in deadline alert fields](https://junglewise.ai/threats/cve-2026-82337-apache-airflow-rebuilt-deadline-alert-fields-through-generic)
