All reports
Medium

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

Affected versions

Version ranges need review.

Affected versions
>=2.0.0 <3.0.0
Fixed version
3.0.0
Affected versions
>= 2.0.0, < 3.0.0
Fixed version
3.0.0

Exploitation

CVE-2026-41016

Probability of exploitation in the next 30 days: 0.27%

FIRST EPSS · 2026-11-22

Description

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.

Links

Credits

  • francisbergin