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

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-06-01T07:50:37.777Z
- Modified: 2026-11-03T07:20:21.050Z
- Also known as: GHSA-cg3x-89rc-x9mw, BIT-AIRFLOW-2026-42360, PYSEC-2026-172
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- apache-airflow: before 3.0.0
- apache-airflow-core: from 3.0.0 before 3.2.2
- apache-airflow (PyPI): before 3.2.2
- apache airflow: before 3.2.2
- airflow (Bitnami): before 3.2.2

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/apache/airflow/pull/65906> (fix, issue-tracking, patch, web)
- <https://lists.apache.org/thread/obj79bpxnl7r5olz1gsn0g94y88glnl4> (advisory, mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42360> (advisory, web)
- <https://github.com/apache/airflow> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-172.yaml> (web)
- <https://github.com/advisories/GHSA-cg3x-89rc-x9mw> (advisory)

## Sources

- CVE List: [CVE-2026-42360](https://www.cve.org/CVERecord?id=CVE-2026-42360), CVE Terms of Use, modified 2026-11-03
- GitHub Advisory Database: [GHSA-cg3x-89rc-x9mw](https://github.com/advisories/GHSA-cg3x-89rc-x9mw), CC-BY-4.0, modified 2026-07-09
- NVD: [CVE-2026-42360](https://nvd.nist.gov/vuln/detail/CVE-2026-42360), Public domain, modified 2026-11-03
- PyPA Advisory Database: [PYSEC-2026-172](https://osv.dev/vulnerability/PYSEC-2026-172), CC-BY-4.0, modified 2026-07-13
- Bitnami Vulnerability Database: [BIT-AIRFLOW-2026-42360](https://osv.dev/vulnerability/BIT-AIRFLOW-2026-42360), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-42360 · Whole record: https://cve.day/CVE-2026-42360.json · Rebuilt by cve.day 2026-11-25T22:59:23.431Z
