Skip to content

An editorial team and a community building with AI

← All articles

News · Apache Software Foundation (Apache Airflow) · 2 min read

Event date: · Published:

Apache Airflow patches template-injection flaw in AI agent task decorators

The Apache Software Foundation disclosed CVE-2026-120353 on November 26, 2026, a template-injection bug in Airflow's new common.ai task decorators that could let attackers run commands on workers.

The Apache Software Foundation disclosed CVE-2026-120353 on November 26, 2026, a template-injection vulnerability in Apache Airflow's TaskFlow decorators that lets attacker-controlled values get re-rendered as Jinja templates on the worker, reaching the project's new common.ai provider decorators used to build LLM and agent tasks inside Airflow pipelines. Details are published in the GitHub Security Advisory for Apache Airflow.

What the vulnerability affects

  • The flaw hits task decorators including @task.bash, @task.sql, @task.kubernetes_cmd, @task.llm, @task.agent, @task.llm_sql, @task.llm_branch, @task.llm_file_analysis and @task.llm_schema_compare.
  • The root cause is that the task runner re-renders Jinja templates a second time after the initial rendering pass.
  • Any attacker-controlled value placed into env, op_args, op_kwargs, or a returned prompt, command or SQL string gets evaluated as a template on the worker.
  • The impact includes arbitrary command execution on the worker and exposure of connection passwords and Airflow Variables, classified under CWE-94 and CWE-1336.

Why it matters for AI builders

Airflow's common.ai provider is a new entry point for wiring LLM agents into production data pipelines, so a worker-side code-execution bug there affects anyone who just adopted agentic task decorators rather than a niche audience. This is also the first disclosed RCE-class flaw in the common.ai provider's LLM and agent orchestration decorators, since the provider itself is new.

Fix and affected versions

  • apache-airflow-providers-standard needs version 1.22.0 or later.
  • apache-airflow-providers-cncf-kubernetes needs version 11.0.0 or later.
  • apache-airflow-providers-common-sql needs version 3.0.0 or later.
  • apache-airflow-providers-common-ai needs version 1.2.0 or later.

The vulnerability is also tracked as CVE-2026-120353 in the CVE Program's record.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

Apache Airflow patches template-injection flaw in AI agent task decorators | vibecoding.inc