CVE-2026-40948: apache software foundation apache airflow providers keycloak Cross-Site Request Forgery (CSRF)
Vulnerability summary
CVE-2026-40948 is a medium (CVSS 5.4) Cross-Site Request Forgery (CSRF) vulnerability in apache software foundation apache airflow providers keycloak. EPSS estimates a 0.36% chance of exploitation in the next 30 days, higher than 27.8% of scored vulnerabilities.
Timeline
- 18-04-2026PublishedVulnerability first disclosed.
- 20-04-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.36%
Chance of exploitation in the next 30 days
Percentile
28%
Versus all other CVEs
30-day change
+0.03 pp
From 0.33% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Apache1 product
- apache-airflow-providers-keycloak≥ 0.0.1, < 0.7.0
Apache software foundation1 product
- apache airflow providers keycloak≥ 0.0.1, < 0.7.0
PyPI1 product
- apache-airflow-providers-keycloak≥ 0.0.1, < 0.7.0
3 vendors · 3 products
References
7 links- github.com/apache/airflowPACKAGE