Apache Airflow has a Sensitive Cookie in HTTPS Session Without 'Secure' Attribute
Medium5.9CVE-2026-41017 · Published Jun 1, 2026 · updated Jul 9, 2026
Apache Airflow's `JWTRefreshMiddleware` set the JWT auth cookie without the `Secure` flag, so deployments running the Airflow API server behind an HTTPS-terminating reverse proxy (e.g. nginx / Envoy / a managed load balancer that terminates TLS and forwards plaintext to the API server, the default cloud-native topology) would have the user's session JWT replayed over any cleartext HTTP request to the same host. A network-positioned attacker (Wi-Fi MITM, hostile LAN, captive-portal proxy) could induce a logged-in user's browser to issue an HTTP request to the deployment's hostname and capture the JWT cookie out of that request, then replay it against the authenticated API. Affects deployments where the Airflow API server is reached through a TLS-terminating proxy and the cookie's secure-by-default protection is load-bearing for session integrity. Users are advised to upgrade to `apache-airflow` 3.2.2 or later.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| apache-airflow PyPI | >= 3.0.0, < 3.2.2 | 3.2.2 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-614
- Also known as
- BIT-airflow-2026-41017, CVE-2026-41017, PYSEC-2026-171
More Apache Airflow advisories
All Apache Airflow| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jun 1 | Apache Airflow has no certificate validation on SMTP STARTTLS connections | Medium5.9 | 3.2.2 |
| Jun 1 | Apache Airflow has an Authorization Bypass Through User-Controlled Key | Medium4.3 | 3.2.2 |
| Jun 1 | Apache Airflow: Auth manager doesn't invalidate JWT tokens after users click logout | Medium6.5 | 3.2.2 |
| Jun 1 | Apache Airflow Vulnerable to Deserialization of Untrusted Data | High7.3 | 3.2.2 |
| Jun 1 | Apache Airflow Vulnerable to Exposure of Sensitive Information to an Unauthorized Actor | Medium6.5 | 3.2.2 |
| Jun 1 | Apache Airflow vulnerable to Improper Neutralization of Special Elements Used in a Template Engine | Critical9.1 | 3.2.2 |