PYSEC-2026-19: Apache Airflow: 3.x - Nested Variable Secret Values Bypass Redaction via max_depth=1
Secrets in Variables saved as JSON dictionaries were not properly redacted - in case thee variables were retrieved by the user the secrets stored as nested fields were not masked.
If you do not store variables with sensitive values in JSON form, you are not affected. Otherwise please upgrade to Apache Airflow 3.2.0 that has the fix implemented
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Apache Airflowto a version that resolves this vulnerability.Fixed in 3.2.0
Event History
Frequently Asked Questions
Which deployments are affected?
Deployments are affected only if they store sensitive values in Airflow Variables as JSON dictionaries, with secrets in nested fields. Deployments that do not store sensitive values in Variables in JSON form are not affected.
What does an attacker need to do to expose a secret?
The issue occurs when a user retrieves a Variable whose JSON dictionary contains a nested secret value. The provided CVSS vector indicates network reachability and no required privileges or user interaction, although exploitation complexity is rated high.
How can I determine whether my environment is exposed?
Review Airflow Variables for values stored as JSON dictionaries and identify whether any nested fields contain passwords, tokens, keys, or other sensitive data. Such Variables may expose those nested values without redaction when retrieved.
What remediation is available?
Upgrade Apache Airflow to version 3.2.0, which implements the fix. If an immediate upgrade is not possible, avoid storing sensitive values in JSON-formatted Variables, particularly in nested fields.