CVE-2026-42360
JSON

6.5medium

Apache Airflow: Rendered template truncation bypasses nested sensitive-key masking

Severity
6.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.35% (higher than 30% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-cg3x-89rc-x9mwBIT-AIRFLOW-2026-42360PYSEC-2026-172

Description

A bug in Apache Airflow's rendered-template field handling caused nested sensitive-key masking (e.g. nested `password` / `token` / `secret` / `api_key` keys inside a JSON template structure) to be bypassed when the rendered field exceeded `[core] max_templated_field_length`: Airflow stringified the structure before redaction, losing the nested key context, and persisted the plaintext value into `rendered_fields`. An authenticated UI/API user with permission to read rendered template fields could harvest secret values intended to be masked. Affects deployments where Dag authors pass structured JSON to operators with nested sensitive keys. This is a variant of `CWE-200` previously addressed for the user-registered `mask_secret()` patterns in CVE-2025-68438; that fix did not cover the nested sensitive-keyword allowlist. Users who already upgraded for CVE-2025-68438 should additionally upgrade to `apache-airflow` 3.2.2 or later to cover the nested-key path.

Affected

Product or packageVersionsReported by
apache-airflowbefore 3.0.0CVE List
apache-airflow-corefrom 3.0.0 before 3.2.2CVE List
apache-airflow (PyPI)before 3.2.2GitHub Advisory Database, PyPA Advisory Database
apache airflowbefore 3.2.2NVD
airflow (Bitnami)before 3.2.2Bitnami Vulnerability Database

All scores

CISA-ADP6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
PyPA Advisory Database6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-200

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

A bug in Apache Airflow's rendered-template field handling caused nested sensitive-key masking (e.g. nested `password` / `token` / `secret` / `api_key` keys inside a JSON template structure) to be bypassed when the rendered field exceeded `[core] max_templated_field_length`: Airflow stringified the structure before redaction, losing the nested key context, and persisted the plaintext value into `rendered_fields`. An authenticated UI/API user with permission to read rendered template fields could harvest secret values intended to be masked. Affects deployments where Dag authors pass structured JSON to operators with nested sensitive keys. This is a variant of `CWE-200` previously addressed for the user-registered `mask_secret()` patterns in CVE-2025-68438; that fix did not cover the nested sensitive-keyword allowlist. Users who already upgraded for CVE-2025-68438 should additionally upgrade to `apache-airflow` 3.2.2 or later to cover the nested-key path.

NVD (es)

Un error en el manejo de campos de plantilla renderizados de Apache Airflow causó que el enmascaramiento anidado de claves sensibles (por ejemplo, claves anidadas 'password' / 'token' / 'secret' / 'api_key' dentro de una estructura de plantilla JSON) fuera eludido cuando el campo renderizado excedía '[core] max_templated_field_length': Airflow convirtió la estructura a cadena antes de la redacción, perdiendo el contexto de la clave anidada, y persistió el valor en texto plano en 'rendered_fields'. Un usuario autenticado de UI/API con permiso para leer campos de plantilla renderizados podría recolectar valores secretos destinados a ser enmascarados. Afecta a implementaciones donde los autores de Dag pasan JSON estructurado a operadores con claves sensibles anidadas. Esta es una variante de 'CWE-200' previamente abordado para los patrones 'mask_secret()' registrados por el usuario en CVE-2025-68438; esa corrección no cubrió la lista de permitidos de palabras clave sensibles anidadas. Los usuarios que ya actualizaron para CVE-2025-68438 deberían actualizar adicionalmente a 'apache-airflow' 3.2.2 o posterior para cubrir la ruta de clave anidada.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-42360 changed 2026-11-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-cg3x-89rc-x9mw changed 2026-07-09CC-BY-4.0
NVDCVE-2026-42360 changed 2026-11-03Public domain
PyPA Advisory DatabasePYSEC-2026-172 changed 2026-07-13CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-AIRFLOW-2026-42360 changed 2026-09-08Apache-2.0