{"cve":"CVE-2026-40948","nvd":{"published":"2026-04-18T14:16:10.897","modified":"2026-10-25T23:10:00.167","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4},"cwes":["CWE-352"],"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"],"products":["apache:apache-airflow-providers-keycloak"],"source":"nvd","synced_at":"2026-10-25T23:44:33.281319194+00:00"},"epss":{"cve":"CVE-2026-40948","score":0.00404,"percentile":0.34374,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-5w6h-pjw6-wvc6","url":"https://osv.dev/vulnerability/GHSA-5w6h-pjw6-wvc6","summary":"apache-airflow-providers-keycloak: Missing OAuth 2.0 State and PKCE Enables Login CSRF and Session Fixation","modified":"2026-07-13T16:42:48.722973213Z","packages":[{"ecosystem":"PyPI","name":"apache-airflow-providers-keycloak","purl":"pkg:pypi/apache-airflow-providers-keycloak","ranges":[">=0.0.1 <0.7.0"],"fixed":["0.7.0"]}]},{"id":"PYSEC-2026-2369","url":"https://osv.dev/vulnerability/PYSEC-2026-2369","summary":"apache-airflow-providers-keycloak: Missing OAuth 2.0 State and PKCE Enables Login CSRF and Session Fixation","modified":"2026-07-13T16:31:28.985950984Z","packages":[{"ecosystem":"PyPI","name":"apache-airflow-providers-keycloak","purl":"pkg:pypi/apache-airflow-providers-keycloak","ranges":[">=0.0.1 <0.7.0"],"fixed":["0.7.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}