# CVE-2026-42360: Apache Airflow: Rendered template truncation bypasses nested sensitive-key masking

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-01 · Modified: 2026-11-03
- Aliases: GHSA-cg3x-89rc-x9mw, BIT-airflow-2026-42360, PYSEC-2026-172, CGA-7qmq-2qh8-89p6, CGA-85cp-2cqc-qw7w, CGA-c7qr-w6v8-f36q, CGA-w26c-p7wc-vxcv
- Record: https://cvemate.com/vulnerability/CVE-2026-42360 · JSON: https://cvemate.com/vulnerability/CVE-2026-42360/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.348%, percentile 30.37%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache airflow: \< 3.0.0 \| ≥ 3.0.0, \< 3.2.2
- apache airflow: \< 3.2.2
- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded)
- PyPI apache-airflow (PyPI): \< 3.2.2

## References

- <https://github.com/apache/airflow/pull/65906>
- <https://lists.apache.org/thread/obj79bpxnl7r5olz1gsn0g94y88glnl4>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42360>
- <https://github.com/apache/airflow>
- <https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-172.yaml>
- <https://github.com/advisories/GHSA-cg3x-89rc-x9mw>
- <https://pypi.python.org>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42360.json>

---

Data as of 2026-12-05T07:37:32.564Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
