Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 93%

CVE-2026-40948: CWE-352: Cross-Site Request Forgery (CSRF) in Apache Software Foundation Apache Airflow Providers Keycloak

0
Medium
VulnerabilityCVE-2026-40948cvecve-2026-40948cwe-352
Published: Sat Apr 18 2026 (04/18/2026, 13:22:41 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/26/2026, 02:40:35 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses