CVE-2026-41018: Apache Airflow Providers Elasticsearch: Elasticsearch task-log handlers leak credentials embedded in the host URL
The Elasticsearch logging provider, when configured with a host URL that embeds credentials (for example https://user:[email protected]:9200), wrote the full host URL — including the embedded credentials — into task logs. Any user with task-log read permission could harvest the backend credentials.
Published May 11, 2026 · Updated Jun 5, 2026
Affected packages
apache-airflow-providers-elasticsearch
- Ecosystem
- PyPI
- Affected
- < 6.5.3
- Fixed in
- 6.5.3
- Check
pip show apache-airflow-providers-elasticsearch
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
The Elasticsearch logging provider, when configured with a host URL that embeds credentials (for example https://user:[email protected]:9200), wrote the full host URL — including the embedded credentials — into task logs. Any user with task-log read permission could harvest the backend credentials. Users are advised to upgrade to apache-airflow-providers-elasticsearch 6.5.3 or later and, as a defense-in-depth measure, configure the backend credentials via a secret backend rather than embedding them in the [elasticsearch] host URL.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-41018
- https://github.com/apache/airflow/pull/65349
- https://lists.apache.org/thread/wz5l58drprmwlv6jxnq466x24jqbbhp7
- https://github.com/apache/airflow/commit/f9244064016a8db45277efb0c24808e663b233f3
- https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow-providers-elasticsearch/PYSEC-2026-22.yaml
- https://github.com/advisories/GHSA-g3jr-4jrm-jvqv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
