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

Published May 31, 2026
·
Updated

A bug in Apache Airflow's rendered-template field handling caused nested sensitive-key masking (e.g. nested password / token / secret / apikey keys inside a JSON template structure) to be bypassed when the rendered field exceeded [core] maxtemplatedfieldlength: Airflow stringified the structure before redaction, losing the nested key context, and persisted the plaintext value into renderedfields. 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 masksecret() 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 Software

2 affected components
Apache Airflow<3.2.2
Apache Airflow<3.2.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache Airflow (apache-airflow) to a version that resolves this vulnerability.

    Fixed in 3.2.2
  2. Configuration

    Lower [core] max_templated_field_length to prevent rendered template field truncation that can bypass nested sensitive-key masking and leads to plaintext being persisted in rendered_fields.

    Apache Airflow [core] max_templated_field_length = (reduce below the length that triggers truncation/redaction bypass)

Event History

Jun 1, 2026
CVE Published
via MITRE·07:50 AM
Data Sourced
via MITRE·07:50 AM
DescriptionWeakness
Data Sourced
via NVD·09:16 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-42360?

The severity of CVE-2026-42360 is rated as medium with a score of 6.5.

2

How do I fix CVE-2026-42360?

You can fix CVE-2026-42360 by applying the available patch from the Apache Airflow repository.

3

What is the risk associated with CVE-2026-42360?

CVE-2026-42360 has a risk rating of 40, indicating a significant concern that needs to be addressed.

4

What type of vulnerability is CVE-2026-42360?

CVE-2026-42360 is classified as an information leak due to its ability to bypass sensitive-key masking.

5

When was CVE-2026-42360 published?

CVE-2026-42360 was published on May 31, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203