CVE-2026-40948: CWE-352: Cross-Site Request Forgery (CSRF) in Apache Software Foundation Apache Airflow
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 prior to version 0.7.0 involves missing generation and validation of the OAuth 2.0 'state' parameter and lack of PKCE usage in the login flow. This flaw enables login-CSRF or session fixation attacks where an attacker can trick a victim into authenticating into the attacker's session. The attacker can then access credentials stored by the victim in Airflow Connections. This issue affects Apache Airflow installations using the vulnerable Keycloak provider integration.
Potential Impact
An attacker with a Keycloak account in the same realm can cause a victim to be logged into the attacker's Airflow session, potentially allowing the attacker to harvest credentials the victim stores in Airflow Connections. This compromises the confidentiality of sensitive credentials managed within Airflow. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Users should upgrade apache-airflow-providers-keycloak to version 0.7.0 or later, where this vulnerability is addressed. No official patch or remediation level is explicitly stated in the advisory, but the upgrade recommendation indicates a fix is available in the specified version. Patch status is not yet confirmed by a vendor advisory, so users should verify with the official Apache Airflow or provider documentation for the latest remediation guidance.
CVE-2026-40948: CWE-352: Cross-Site Request Forgery (CSRF) in Apache Software Foundation Apache Airflow
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in apache-airflow-providers-keycloak prior to version 0.7.0 involves missing generation and validation of the OAuth 2.0 'state' parameter and lack of PKCE usage in the login flow. This flaw enables login-CSRF or session fixation attacks where an attacker can trick a victim into authenticating into the attacker's session. The attacker can then access credentials stored by the victim in Airflow Connections. This issue affects Apache Airflow installations using the vulnerable Keycloak provider integration.
Potential Impact
An attacker with a Keycloak account in the same realm can cause a victim to be logged into the attacker's Airflow session, potentially allowing the attacker to harvest credentials the victim stores in Airflow Connections. This compromises the confidentiality of sensitive credentials managed within Airflow. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Users should upgrade apache-airflow-providers-keycloak to version 0.7.0 or later, where this vulnerability is addressed. No official patch or remediation level is explicitly stated in the advisory, but the upgrade recommendation indicates a fix is available in the specified version. Patch status is not yet confirmed by a vendor advisory, so users should verify with the official Apache Airflow or provider documentation for the latest remediation guidance.
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/18/2026, 2:08:06 PM
Last updated: 4/18/2026, 3:01:08 PM
Views: 4
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.