# CVE-2026-41017: Apache Airflow: JWT cookie missing Secure flag in JWTRefreshMiddleware behind HTTPS-terminating proxy

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-01 · Modified: 2026-11-03
- Aliases: GHSA-95v7-h9j5-gvjr, BIT-airflow-2026-41017, PYSEC-2026-171
- Record: https://cvemate.com/vulnerability/CVE-2026-41017 · JSON: https://cvemate.com/vulnerability/CVE-2026-41017/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.35%, percentile 30.658%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache airflow: ≥ 3.0.0, \< 3.2.2
- apache airflow: ≥ 3.0.0, \< 3.2.2
- PyPI apache-airflow (PyPI): ≥ 3.0.0, \< 3.2.2

## References

- <https://github.com/apache/airflow/pull/65348>
- <https://lists.apache.org/thread/9jx0sk49c1250zflx0q3clc717qgjdch>
- <http://www.openwall.com/lists/oss-security/2026/05/31/6>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41017>
- <https://github.com/apache/airflow>
- <https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-171.yaml>
- <https://github.com/advisories/GHSA-95v7-h9j5-gvjr>

---

Data as of 2026-12-05T07:37:11.479Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
