Skip to main content

Apache Airflow CVE-2026-48726

| EUVDEUVD-2026-33581 MEDIUM
Insufficient Session Expiration (CWE-613)
6.5
CVSS 3.1 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain victim JWT cookie via interception or XSS
  2. Delivery
    Victim initiates Airflow logout
  3. Exploit
    External auth manager redirect bypasses revoke_token() call
  4. Execution
    JWT remains valid in RevokedToken table
  5. Persist
    Replay stolen token against Airflow REST API
  6. Impact
    Exfiltrate DAG configs, connections, or variables

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session expiration enforcement
Exploitation Conditions

Exploitation requires three concurrent conditions: (1) the Airflow deployment must use FabAuthManager or KeycloakAuthManager - or any auth manager whose get_url_logout() returns a non-None external URL - as this is the code path where revoke_token() was unreachable; (2) an attacker must have already obtained the victim's JWT cookie value prior to logout (e.g., via session hijacking, token logging, or XSS); and (3) the captured token must still be within its expiry window (exp claim) at time of use. Deployments using the default auth manager with no external logout URL are not affected because those code paths reached revoke_token() correctly. Authentication at PR:L is required - unauthenticated users cannot obtain a token at all. There is no browser interaction required from the victim beyond the legitimate logout action.

Impact

CVSS 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) correctly characterizes this as a network-exploitable, low-complexity issue requiring authenticated access (PR:L). The high confidentiality impact reflects that a post-logout token still grants full API read access scoped to the token holder's permissions. EPSS at 0.01% (4th percentile) and absence from CISA KEV together indicate no observed opportunistic or widespread exploitation. This is a real but narrow-window vulnerability: practical exploitation requires an attacker to have previously captured a victim's JWT cookie (e.g., via XSS, network interception, or log exposure) and then use it after the victim has logged out expecting invalidation. For organizations using Keycloak or other OIDC providers with Airflow, where users may expect logout to be definitive, this gap between expectation and behavior elevates residual risk. The fix is confirmed upstream; unpatched deployments with external auth managers carry meaningful residual exposure for any token with remaining TTL.

Exploit ScenarioDerived

An attacker who has stolen a logged-in user's JWT cookie - for example via network interception on a misconfigured deployment or a prior XSS - waits for the victim to click logout. In a Keycloak-backed Airflow deployment, the logout handler redirects to Keycloak's logout URL before revoking the token, leaving the captured JWT fully valid until its expiry. The attacker replays the token against the Airflow REST API to read DAG run data, connections, variables, or any resource the victim's role permitted. No public exploit code is identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 02, 2026

JWT session tokens remain valid after logout in Apache Airflow deployments using FabAuthManager or KeycloakAuthManager due to an unreachable revoke_token() call in the logout code path. Versions before 3.2.2 are affected. When the configured auth manager returns an external redirect URL on logout (as Keycloak-backed deployments do), the logout handler redirects the browser before invoking revoke_token(), leaving the JWT - with its embedded jti claim - unregistered in the RevokedToken table and therefore still accepted by the API. No public exploit is identified at time of analysis, and EPSS exploitation probability stands at 0.01% (4th percentile), but the impact is meaningful in environments where session hijacking or token theft is a realistic threat model.

RemediationAI

Upgrade Apache Airflow to version 3.2.2 or later, which contains the fix confirmed in upstream PR #67289. The patch reorders the logout handler to call auth_manager.revoke_token(token_str) before any redirect is issued, ensuring the token's jti is registered in the RevokedToken blocklist regardless of whether the auth manager redirects to an external IdP URL. The Apache advisory is at https://lists.apache.org/thread/630jg4z6cjkv4m2yv2ljgmf1zhdj1vqx. If immediate upgrade is not feasible and you are using an external auth manager with a logout redirect URL, a compensating control is to shorten JWT token TTL to the minimum operationally tolerable value in Airflow's configuration (api.access_token_lifetime_in_seconds), reducing the window during which a post-logout token remains valid. Note this trade-off: shorter TTLs increase re-authentication friction for users. Revoking session cookies server-side or deploying a reverse proxy that clears the JWT cookie on logout does not address the server-side RevokedToken gap and is not a sufficient standalone mitigation.

Affected VersionsENISA

Apache Airflow 0 <3.2.2

Affected Packages

pypi apache-airflow fix: 3.2.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Apache Airflow's FastAPI-based REST API (airflow-core/src/airflow/api_fastapi/core_api/routes/public/auth.py) issues JWT access tokens stored as cookies, identified by a jti (JWT ID) claim. The RevokedToken mechanism is designed to blocklist tokens server-side upon logout, compensating for JWTs' inherent statelessness. CWE-613 (Insufficient Session Expiration) is the root cause class: the token's expiry was never actively enforced on logout when an external identity provider is involved. The defect arises specifically when get_url_logout() on FabAuthManager or KeycloakAuthManager returns a non-None redirect URL - the logout route performed a 307 redirect before reaching the revoke_token() call, rendering revocation dead code in those auth manager configurations. Affected versions span Apache Airflow 0 through 3.2.2 (exclusive) per EUVD-2026-33581 CPE data.

Know when Airflow gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CNA) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Primary rating from Vendor (CNA) · only source for this CVE.

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

4
CVSS changed
Jun 02, 2026 - 17:22 NVD
6.5 (MEDIUM)
Patch available
Jun 01, 2026 - 10:01 EUVD
CVE Published
May 31, 2026 - 12:45 nvd
UNKNOWN (no severity yet)
CVE Published
May 31, 2026 - 12:45 nvd
MEDIUM 6.5

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2020-13927 CRITICAL POC
9.8 Nov 10

The previous default setting for Airflow's Experimental API was to allow all API requests without authentication, but th

CVE-2020-11978 HIGH POC
8.8 Jul 17

An issue was found in Apache Airflow versions 1.10.10 and below. Rated high severity (CVSS 8.8), this vulnerability is r

CVE-2021-38540 CRITICAL POC
9.8 Sep 09

The variable import endpoint was not protected by authentication in Airflow >=2.0.0, <2.1.3. Rated critical severity (CV

CVE-2022-40127 HIGH POC
8.8 Nov 14

A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arb

CVE-2022-24288 HIGH POC
8.8 Feb 25

In Apache Airflow, prior to version 2.2.4, some example DAGs did not properly sanitize user-provided params, making them

CVE-2022-45402 MEDIUM
6.1 Nov 15

In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium

CVE-2020-11981 CRITICAL POC
9.8 Jul 17

An issue was found in Apache Airflow versions 1.10.10 and below. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2020-17526 HIGH POC
7.7 Dec 21

Incorrect Session Validation in Apache Airflow Webserver versions prior to 1.10.14 with default config allows a maliciou

CVE-2020-11982 CRITICAL
9.8 Jul 17

An issue was found in Apache Airflow versions 1.10.10 and below. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2020-13944 MEDIUM
6.1 Sep 17

In Apache Airflow < 1.10.12, the "origin" parameter passed to some of the endpoints like '/trigger' was vulnerable to XS

CVE-2022-40189 CRITICAL
9.8 Nov 22

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airfl

CVE-2022-38649 CRITICAL
9.8 Nov 22

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airfl

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy