Medium

apache-airflow-providers-smtp: No certificate validation on SMTP STARTTLS connections in SMTP provider

  • Disclosed: 30.04.2026
  • Updated: 11.10.2026 15:17

Apache Airflow's SMTP provider SmtpHook called Python's smtplib.SMTP.starttls() without an SSL context, so no certificate validation was performed on the TLS upgrade. A man-in-the-middle between the Airflow worker and the SMTP server could present a self-signed certificate, complete the STARTTLS upgrade, and capture the SMTP credentials sent during the subsequent login() call. Users are advised to upgrade to the apache-airflow-providers-smtp version that contains the fix.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) apache-airflow-providers-smtp >= 2.0.0, < 3.0.0 3.0.0

References

CVSS score 5.9/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-295
Platform
Python (PyPI)
Package
apache-airflow-providers-smtp
Disclosed
30.04.2026
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-24 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-x8mh-94wc-33gv - CC BY 4.0

Vulnerability history: apache-airflow-providers-smtp

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
08.2023 04.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Medium 2

Disclosures per year

  1. 2023: 1
  2. 2024: 0
  3. 2025: 0
  4. 2026: 1
  1. apache-airflow-providers-smtp: No certificate validation on SMTP STARTTLS connections in SMTP provider this entry
    Medium · 5.9 CVE-2026-41016 >= 2.0.0, < 3.0.0 3.0.0
  2. Medium · 5.9 CVE-2023-39441 < 1.3.0 1.3.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.