The vulnerability, CVE-2026-27173, allowed for the exposure of sensitive JWT tokens in the command-line arguments of worker pods managed by the Apache Airflow KubernetesExecutor. This gave users with read-only Kubernetes access the ability to impersonate the worker and interact with the Airflow API.
The root cause lies in the BaseWorkloadSchema.generate_token function. Before the fix, this function generated a JWT token with the default 'execution' scope, which granted extensive permissions. This token was then insecurely passed to the worker. The vulnerability was remediated by introducing a two-token system. The analysis of the patch commits reveals that BaseWorkloadSchema.generate_token was modified to generate a new type of token with a restricted 'workload' scope. This token has a longer lifespan to survive queue times but is only permitted to be used once to start the task and exchange it for a standard, short-lived 'execution' token to perform its operations. The key vulnerable function is BaseWorkloadSchema.generate_token because it was the source of the overly permissive token that was being exposed.