Insertion of Sensitive Information into Log File Affecting apache-airflow-providers-elasticsearch package, versions [,6.5.3rc1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insertion of Sensitive Information into Log File vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-APACHEAIRFLOWPROVIDERSELASTICSEARCH-16636229
  • published11 May 2026
  • disclosed11 May 2026
  • creditAleksandr Sozinov

Introduced: 11 May 2026

CVE-2026-41018  (opens in a new tab)
CWE-532  (opens in a new tab)

How to fix?

Upgrade apache-airflow-providers-elasticsearch to version 6.5.3rc1 or higher.

Overview

apache-airflow-providers-elasticsearch is a Provider package apache-airflow-providers-elasticsearch for Apache Airflow

Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File due to the _group_logs_by_host function in es_task_handler.py. An attacker can expose embedded Elasticsearch credentials by causing task-log entries to be grouped with the raw [elasticsearch] host URL when a hit lacks a host field. This leaks the user:password@ portion of the configured Elasticsearch endpoint into task-log output, where anyone with task-log read permission can recover the credentials.

Workarounds

  • Configure Elasticsearch backend credentials via a secret backend instead of embedding user:password@ in the [elasticsearch] host URL; this prevents those credentials from being exposed in task-log output to users with task-log read permission.

CVSS Base Scores

version 4.0
version 3.1