CVE-2026-41017: Apache Airflow JWT Cookie Lacks Secure Flag in JWTRefreshMiddleware

airflow Updated 05 Jun 2026

Summary

05/06/2026
Yes i
Medium
Not published

CVE-2026-41017: Apache Airflow: JWT cookie missing Secure flag in JWTRefreshMiddleware behind HTTPS-terminating proxy. Affects airflow versions >= 3.0.0, < 3.2.2. Fixed in 3.2.2. How to fix ↓

Also tracked for

The same CVE-2026-41017 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Airflow is an open-source platform designed to programmatically author, schedule, and monitor workflows. It is widely used for orchestrating complex data pipelines and automating tasks. The platform's architecture allows for integration with various data sources and services, making it a popular choice among data engineers and analysts. However, the security of the Airflow API can be compromised if proper measures are not in place, particularly regarding session management and cookie security.

Vulnerability Detail

The vulnerability arises from the JWTRefreshMiddleware in Apache Airflow, which sets the JWT authentication cookie without the Secure flag. This oversight is particularly critical for deployments behind HTTPS-terminating proxies, such as nginx or managed load balancers. When the Secure flag is absent, the JWT cookie can be transmitted over unencrypted HTTP requests, making it susceptible to interception by attackers positioned on the same network. This could lead to session hijacking, where an attacker captures the JWT and uses it to impersonate a legitimate user, gaining unauthorized access to the API.

How To Fix

Minimum fixed version

3.2.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, if upgrading is not immediately feasible, consider implementing additional security measures such as enforcing HTTPS across all endpoints and ensuring that the application is not accessible over HTTP. This can help mitigate the risk of cookie interception until the upgrade can be performed.

Conclusion

CVE-2026-41017 highlights a critical security oversight in Apache Airflow's JWT cookie management, particularly for deployments behind HTTPS-terminating proxies. Users are strongly advised to upgrade to version 3.2.2 or later to mitigate the risk of session hijacking. Implementing additional security measures can provide temporary relief until the upgrade is completed.

See every vulnerability recorded for airflow →

Share this vulnerability

FAQ

CVE-2026-41017 is a vulnerability in Apache Airflow that allows JWT cookies to be transmitted without the Secure flag, making them susceptible to interception over unencrypted connections.

If your Airflow API server is behind an HTTPS-terminating proxy and the Secure flag is not set on the JWT cookie, attackers could capture and replay the JWT, potentially gaining unauthorized access to your API.

As a temporary measure, ensure that your Airflow instance is only accessible over HTTPS and consider implementing additional security controls to protect against session hijacking.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Failure to address this vulnerability could lead to unauthorized access to your Airflow API, allowing attackers to manipulate workflows, access sensitive data, or disrupt operations.

Related vulnerabilities

Recent vulnerabilities recorded for airflow.

How To Fix

Minimum fixed version

3.2.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback