← All advisories

CVE-2026-120353highPrompt injection2026-11-26

CVE-2026-120353: Apache Airflow's @task.llm, @task.agent and other AI decorators rendered prompts as Jinja a second time, so text in a prompt or Dag run conf could run code on the worker (Common AI provider fixed 1.2.0)

Apache Airflow's TaskFlow decorators @task.bash, @task.sql, @task.analytics, @task.kubernetes_cmd and the Common AI provider's @task.llm, @task.agent, @task.llm_sql, @task.llm_branch, @task.llm_file_analysis and @task.llm_schema_compare rendered Jinja templates a second time after the task runner had already rendered them. Anything copied into env, op_args, op_kwargs or the returned prompt, command or SQL was evaluated as a template on the worker. Someone who can only trigger a Dag run, or who controls text a Dag feeds into an LLM prompt (a ticket, a downloaded document), could run commands on the worker and read connection passwords and Variables.

01.

What it is

Root cause: a second Jinja render of already-rendered values, so attacker-controlled text that ends up in a prompt, command, SQL, env or task arguments is treated as a template (CWE-1336).

For AI Dags this is a prompt-injection-to-code-execution path: untrusted content passed as an LLM prompt to @task.llm or @task.agent could carry Jinja that runs on the worker before the model ever sees it.

Affected (Apache advisory): Apache Airflow Common AI provider 0.1.0 before 1.2.0, Standard provider 0.3.0 before 1.22.0, CNCF Kubernetes provider 10.5.0 before 11.0.0, Common SQL provider 1.32.0 before 3.0.0.

Only deployments that use an affected decorator in a Dag that passes such input through env, parameters or prompt are exposed. Fixed by apache/airflow PR #76244.

Announced by Apache on oss-security on 26 November 2026; NVD published the CVE the same day. Credit: Claude Security Scans (tool), Sonar (finder), Jarek Potiuk (remediation).

02.

How to check

  1. Run pip show apache-airflow-providers-common-ai apache-airflow-providers-standard apache-airflow-providers-cncf-kubernetes apache-airflow-providers-common-sql on your workers and scheduler image.
  2. Search your Dags for @task.llm, @task.agent, @task.llm_* and @task.bash/@task.sql/@task.kubernetes_cmd whose arguments, env or prompt include run conf or external text.
03.

How to fix

  1. Upgrade apache-airflow-providers-common-ai to 1.2.0, apache-airflow-providers-standard to 1.22.0, apache-airflow-providers-cncf-kubernetes to 11.0.0 and apache-airflow-providers-common-sql to 3.0.0 or later.
  2. Until then, restrict who can trigger Dags with run conf, and don't pass untrusted documents or tickets straight into these decorators.
pip install -U 'apache-airflow-providers-common-ai>=1.2.0' 'apache-airflow-providers-standard>=1.22.0' \
  'apache-airflow-providers-cncf-kubernetes>=11.0.0' 'apache-airflow-providers-common-sql>=3.0.0'
04.

Sources

The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.