VDB
Sign up
CRITICAL9.1

PYSEC-2026-278

Improper Certificate Validation in apache airflow mongo hook

Quick fix

PYSEC-2026-278 — apache-airflow-providers-mongo: upgrade to the fixed version with the command below.

pip install --upgrade 'apache-airflow-providers-mongo>=4.0.0'

Details

When ssl was enabled for Mongo Hook, default settings included "allow_insecure" which caused that certificates were not validated. This was unexpected and undocumented. Users are recommended to upgrade to version 4.0.0, which fixes this issue.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/apache-airflow-providers-mongo
Introduced in: 0Fixed in: 4.0.0
Fixpip install --upgrade 'apache-airflow-providers-mongo>=4.0.0'

References