# CVE-2026-40948

> Vulnerability · severity: **MEDIUM** (CVSS 5.4).

## 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.

## Key facts

- **CVE ID:** CVE-2026-40948
- **Published:** 2026-04-18
- **CVSS severity:** MEDIUM
- **CVSS base score:** 5.4
- **CWE codes:** CWE-352

## Affected products

- `apache:apache-airflow-providers-keycloak`

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-40948

## Citation

> AI Analytics. CVE-2026-40948. Retrieved 2026-07-08 from https://api.ai-analytics.org/cve/CVE-2026-40948. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*