CVE-2026-40948

Apache Airflow Providers Keycloak: OAuth Login CSRF — Missing State Parameter in Keycloak Auth Manager

Published Apr 18, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
The Keycloak authentication manager in `apache-airflow-providers-keycloak` did not generate or validate the OAuth 2.0 `state` parameter on the login / login-callback flow, and did not use PKCE. An attacker with a Keycloak account in the same realm could deliver a crafted callback URL to a victim's browser and cause the victim to be logged into the attacker's Airflow session (login-CSRF / session fixation), where any credentials the victim subsequently stored in Airflow Connections would be harvestable by the attacker. Users are advised to upgrade `apache-airflow-providers-keycloak` to 0.7.0 or later.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5w6h-pjw6-wvc6 apache-airflow-providers-keycloak: Missing OAuth 2.0 State and PKCE Enables Login CSRF and Session Fixation
History
Type Values Removed Values Added
First Time appeared Apache apache-airflow-providers-keycloak
CPEs cpe:2.3:a:apache:apache-airflow-providers-keycloak:*:*:*:*:*:*:*:*
Vendors & Products Apache apache-airflow-providers-keycloak
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Apache Airflow: OAuth Login CSRF — Missing State Parameter in Keycloak Auth Manager Apache Airflow Providers Keycloak: OAuth Login CSRF — Missing State Parameter in Keycloak Auth Manager
Type Values Removed Values Added
First Time appeared Apache
Apache airflow
Vendors & Products Apache
Apache airflow
Type Values Removed Values Added
Description The Keycloak authentication manager in `apache-airflow-providers-keycloak` did not generate or validate the OAuth 2.0 `state` parameter on the login / login-callback flow, and did not use PKCE. An attacker with a Keycloak account in the same realm could deliver a crafted callback URL to a victim's browser and cause the victim to be logged into the attacker's Airflow session (login-CSRF / session fixation), where any credentials the victim subsequently stored in Airflow Connections would be harvestable by the attacker. Users are advised to upgrade `apache-airflow-providers-keycloak` to 0.7.0 or later.
Title Apache Airflow: OAuth Login CSRF — Missing State Parameter in Keycloak Auth Manager
Weaknesses CWE-352
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Apr 20, 2026, 4:17 PM
Reserved
Apr 16, 2026, 12:13 AM
Status
Analyzed
Published
Apr 18, 2026, 2:16 PM
Modified
Oct 25, 2026, 11:10 PM