CVE-2026-40948: CWE-352: Cross-Site Request Forgery (CSRF) in Apache Software Foundation Apache Airflow Providers Keycloak
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.
AI Analysis
Technical Summary
The vulnerability in Apache Airflow Providers Keycloak (CVE-2026-40948) arises from the lack of generation and validation of the OAuth 2.0 state parameter and absence of PKCE in the login and login-callback flow. This allows an attacker with a Keycloak account in the same realm to perform login-CSRF or session fixation attacks by delivering a crafted callback URL to a victim. The victim's browser is tricked into logging into the attacker’s Airflow session, potentially exposing any credentials the victim stores in Airflow Connections to the attacker. The affected version is 0.0.1, and upgrading to 0.7.0 or later is recommended. The CVSS v3.1 base score is 5.4, indicating medium severity.
Potential Impact
An attacker with a Keycloak account in the same realm can cause a victim to unknowingly log into the attacker's Airflow session, enabling the attacker to harvest credentials stored by the victim in Airflow Connections. This compromises confidentiality of stored credentials but does not affect availability. The attack requires user interaction (UI:R) and network access (AV:N) with no privileges required (PR:N).
Mitigation Recommendations
Users should upgrade the apache-airflow-providers-keycloak package to version 0.7.0 or later, where this vulnerability is addressed. Patch status is not explicitly confirmed in the vendor advisory, so users should verify the latest vendor guidance for official fixes. Until upgraded, users should be cautious of unsolicited or suspicious login callback URLs related to Keycloak authentication flows.
CVE-2026-40948: CWE-352: Cross-Site Request Forgery (CSRF) in Apache Software Foundation Apache Airflow Providers Keycloak
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 v3.1
Score 5.4medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Apache Airflow Providers Keycloak (CVE-2026-40948) arises from the lack of generation and validation of the OAuth 2.0 state parameter and absence of PKCE in the login and login-callback flow. This allows an attacker with a Keycloak account in the same realm to perform login-CSRF or session fixation attacks by delivering a crafted callback URL to a victim. The victim's browser is tricked into logging into the attacker’s Airflow session, potentially exposing any credentials the victim stores in Airflow Connections to the attacker. The affected version is 0.0.1, and upgrading to 0.7.0 or later is recommended. The CVSS v3.1 base score is 5.4, indicating medium severity.
Potential Impact
An attacker with a Keycloak account in the same realm can cause a victim to unknowingly log into the attacker's Airflow session, enabling the attacker to harvest credentials stored by the victim in Airflow Connections. This compromises confidentiality of stored credentials but does not affect availability. The attack requires user interaction (UI:R) and network access (AV:N) with no privileges required (PR:N).
Mitigation Recommendations
Users should upgrade the apache-airflow-providers-keycloak package to version 0.7.0 or later, where this vulnerability is addressed. Patch status is not explicitly confirmed in the vendor advisory, so users should verify the latest vendor guidance for official fixes. Until upgraded, users should be cautious of unsolicited or suspicious login callback URLs related to Keycloak authentication flows.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-04-16T00:13:13.957Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e38cc4bdfbbecc5977d883
Added to database: 4/18/2026, 1:53:08 PM
Last enriched: 4/26/2026, 2:40:35 AM
Last updated: 5/31/2026, 11:11:40 PM
Views: 123
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.