apache-airflow-providers-smtp: No certificate validation on SMTP STARTTLS connections in SMTP provider
Moderate severity
GitHub Reviewed
Published
Apr 30, 2026
to the GitHub Advisory Database
•
Updated May 22, 2026
Package
Affected versions
>= 2.0.0, < 3.0.0
Patched versions
3.0.0
Description
Published by the National Vulnerability Database
Apr 30, 2026
Published to the GitHub Advisory Database
Apr 30, 2026
Reviewed
May 22, 2026
Last updated
May 22, 2026
Apache Airflow's SMTP provider
SmtpHookcalled Python'ssmtplib.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 subsequentlogin()call. Users are advised to upgrade to theapache-airflow-providers-smtpversion that contains the fix.References