# CVE-2026-40948: Apache Airflow Providers Keycloak: OAuth Login CSRF — Missing State Parameter in Keycloak Auth Manager

- Severity: Medium 5.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-02)
- Published: 2026-04-18T13:22:41.577Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-5w6h-pjw6-wvc6, PYSEC-2026-2369
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

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

(As written by CVE List.)

## Affected

- apache-airflow-providers-keycloak: from 0.0.1 before 0.7.0
- apache-airflow-providers-keycloak (PyPI): from 0.0.1 before 0.7.0
- apache apache-airflow-providers-keycloak: from 0.0.1 before 0.7.0

## Every score

- CISA-ADP: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/apache/airflow/pull/64114> (issue-tracking, patch, web)
- <https://lists.apache.org/thread/kc0odpr70hbqhdb9ksnz42fkqz2xld9q> (mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2026/04/17/14> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40948> (advisory)
- <https://github.com/apache/airflow> (package)
- <https://pypi.org/project/apache-airflow-providers-keycloak> (package)
- <https://github.com/advisories/GHSA-5w6h-pjw6-wvc6> (advisory)

## Sources

- CVE List: [CVE-2026-40948](https://www.cve.org/CVERecord?id=CVE-2026-40948), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-5w6h-pjw6-wvc6](https://github.com/advisories/GHSA-5w6h-pjw6-wvc6), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-40948](https://nvd.nist.gov/vuln/detail/CVE-2026-40948), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2369](https://osv.dev/vulnerability/PYSEC-2026-2369), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-40948 · Whole record: https://cve.day/CVE-2026-40948.json · Rebuilt by cve.day 2026-11-25T22:59:18.998Z
