CVE-2026-40948 json
Apache Airflow Providers Keycloak: OAuth Login CSRF — Missing State Parameter in Keycloak Auth Manager
published 2026-04-18 6 mo ago modified 2026-10-25 14 d ago also GHSA-5w6h-pjw6-wvc6 , PYSEC-2026-2369 , EUVD-2026-23676
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 34%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi apache-airflow-providers-keycloak 0.7.0
- Apache Software Foundation Apache Airflow Providers Keycloak 0.7.0
- github.com/apache/airflow#64114 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.40% chance of exploitation in the next 30 days, higher than 34% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | apache-airflow-providers-keycloak | >=0.0.1, <0.7.0 |
0.7.0 |
Affected products
- Apache Software Foundation Apache Airflow Providers Keycloak
Classification
- Weakness
-
- CWE-352 Cross-Site Request Forgery
References
-
github.com
/apache/airflow/pull/64114
patch, web, issue-tracking
-
lists.apache.org
/thread/kc0odpr70hbqhdb9ksnz42fkqz2xld9q
vendor-advisory, web, mailing-list
-
openwall.com
/lists/oss-security/2026/04/17/14
web, mailing-list, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-40948
advisory
-
github.com
/apache/airflow
package
-
pypi.org
/project/apache-airflow-providers-keycloak
package
-
github.com
/advisories/GHSA-5w6h-pjw6-wvc6
advisory
Sources
- CVE List CVE-2026-40948
- GitHub Advisory GHSA-5w6h-pjw6-wvc6
- NVD CVE-2026-40948
- OSV PYSEC-2026-2369
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.