What’s Vulnerable › Vulnerabilities
CVE-2023-40712: Apache Airflow: Secrets can be unmasked in the "Rendered Template"
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.0% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-09-12 · updated 2026-06-17
- Weakness: CWE-200
Description
Apache Airflow, versions before 2.7.1, is affected by a vulnerability that allows authenticated users who have access to see the task/dag in the UI, to craft a URL, which could lead to unmasking the secret configuration of the task that otherwise would be masked in the UI. Users are strongly advised to upgrade to version 2.7.1 or later which has removed the vulnerability.
Affected products
- Apache Airflow: before 2.7.1 — fixed in 2.7.1
How to fix
Upgrade to a fixed version: Apache Airflow 2.7.1. Check the vendor advisory for mitigations.
References
- https://github.com/apache/airflow/pull/33512
- https://github.com/apache/airflow/pull/33516
- https://lists.apache.org/thread/jw1yv4lt6hpowqbb0x4o3tdp0jhx2bts
- https://github.com/apache/airflow/pull/33512
- https://github.com/apache/airflow/pull/33516
- https://lists.apache.org/thread/jw1yv4lt6hpowqbb0x4o3tdp0jhx2bts
Get alerted when CVE-2023-40712 or the next vulnerability affects your stack