{"id":"CVE-2026-40948","state":"PUBLISHED","title":"Apache Airflow Providers Keycloak: OAuth Login CSRF — Missing State Parameter in Keycloak Auth Manager","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.","publishedAt":"2026-04-18T13:22:41.577Z","updatedAt":"2026-04-20T16:17:53.543Z","severity":{"score":5.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"CISA-ADP"},"assigner":"apache","products":["Apache Software Foundation Apache Airflow Providers Keycloak"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Airflow Providers Keycloak","packageName":"apache-airflow-providers-keycloak","defaultStatus":"unaffected","versions":[{"version":"0.0.1","status":"affected","lessThan":"0.7.0","versionType":"semver"}],"collectionURL":"https://pypi.python.org"}],"references":["https://github.com/apache/airflow/pull/64114","https://lists.apache.org/thread/kc0odpr70hbqhdb9ksnz42fkqz2xld9q","http://www.openwall.com/lists/oss-security/2026/04/17/14"],"weaknesses":["CWE-352"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/40xxx/CVE-2026-40948.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-40948","state":"PUBLISHED","datePublished":"2026-04-18T13:22:41.577Z","dateUpdated":"2026-04-20T16:17:53.543Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2026-04-16T00:13:13.957Z"},"containers":{"cna":{"title":"Apache Airflow Providers Keycloak: OAuth Login CSRF — Missing State Parameter in Keycloak Auth Manager","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Airflow Providers Keycloak","packageName":"apache-airflow-providers-keycloak","defaultStatus":"unaffected","versions":[{"version":"0.0.1","status":"affected","lessThan":"0.7.0","versionType":"semver"}],"collectionURL":"https://pypi.python.org"}],"references":[{"url":"https://github.com/apache/airflow/pull/64114","tags":["patch"]},{"url":"https://lists.apache.org/thread/kc0odpr70hbqhdb9ksnz42fkqz2xld9q","tags":["vendor-advisory"]}],"metrics":[{"other":{"content":{"text":"low"},"type":"Textual description of severity"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-352","description":"CWE-352: Cross-Site Request Forgery (CSRF)","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"apache","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateUpdated":"2026-04-19T23:52:51.780Z"},"credits":[{"lang":"en","type":"finder","value":"Haruki Oyama (Waseda University)"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"airflow-s/generate_cve_json.py"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/04/17/14"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-04-18T13:30:35.729Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.4,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","integrityImpact":"LOW","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-04-20T16:17:06.510314Z","id":"CVE-2026-40948","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-20T16:17:53.543Z"}}]}}}