---
title: Apache Airflow CVE-2026-120353: @task.bash, @task.sql, @task.kubernetes_cmd and the common.ai @task.llm/@task.agent decorators re-render Jinja, so run conf or text fed into a prompt can run commands on the worker | ctxsec
url: https://ctxsec.com/items/apache-airflow-cve-2026-120353-taskflow-decorators-double-jinja-render-llm-agent-prompt-code-exec-on-worker
description: "Apache says these TaskFlow decorators rendered Jinja a second time, so values passed through env, op_args, op_kwargs or a returned prompt, command or SQL were evaluated as templates on the worker. Anyone who can trigger a Dag run, or who controls text a Dag passes into one (such as a ticket or downloaded document sent to an LLM decorator), could run commands and read connection passwords and Variables. Rated important."
status: "official (Apache Airflow advisory on oss-security)"
published: 2026-11-27
---

> Apache says these TaskFlow decorators rendered Jinja a second time, so values passed through env, op_args, op_kwargs or a returned prompt, command or SQL were evaluated as templates on the worker. Anyone who can trigger a Dag run, or who controls text a Dag passes into one (such as a ticket or downloaded document sent to an LLM decorator), could run commands and read connection passwords and Variables. Rated important.

[← Context & Harness Attacks](/context) · [markdown](/items/apache-airflow-cve-2026-120353-taskflow-decorators-double-jinja-render-llm-agent-prompt-code-exec-on-worker.md)

official (Apache Airflow advisory on oss-security)

2026-11-27 4:37 AM ET

### Apache Airflow CVE-2026-120353: @task.bash, @task.sql, @task.kubernetes_cmd and the common.ai @task.llm/@task.agent decorators re-render Jinja, so run conf or text fed into a prompt can run commands on the worker

- **Fixed:** apache-airflow-providers-standard 1.22.0, cncf-kubernetes 11.0.0, common-sql 3.0.0, common-ai 1.2.0.
- **Affected:** Standard 0.3.0 to before 1.22.0, CNCF Kubernetes 10.5.0 to before 11.0.0, Common SQL 1.32.0 to before 3.0.0, Common AI 0.1.0 to before 1.2.0.
- **Why it's a context-layer bug:** the common.ai decorators turn untrusted documents into prompts; with the double render, that text became template code on the worker.
- **Credit:** Claude Security Scans (tool), Sonar (finder).

Sources: [oss-security: CVE-2026-120353 Apache Airflow providers](https://seclists.org/oss-sec/2026/q4/902) · [Apache Airflow PR #76244](https://github.com/apache/airflow/pull/76244)
