{"schemaVersion":3,"id":"CVE-2026-40948","aliases":["GHSA-5w6h-pjw6-wvc6","PYSEC-2026-2369"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-04-18T13:22:41.577Z","modified":"2026-04-20T16:17:53.543Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","exploitability":7.2,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00357,"percentile":0.27989,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.02899999999999999,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00328},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00357,"percentile":0.27989}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00357,"percentile":0.27989}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-352","name":"Cross-Site Request Forgery (CSRF)","description":"The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.","type":"weakness","status":"Stable","abstraction":"Compound","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/352.html"}],"affected":[{"vendor":"apache software foundation","product":"apache airflow providers keycloak","name":"Apache Airflow Providers Keycloak","label":"apache airflow providers keycloak","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.0.1, < 0.7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.0.1, < 0.7.0","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_airflow_providers_keycloak"},{"vendor":"apache","product":"apache-airflow-providers-keycloak","name":"apache-airflow-providers-keycloak","label":"apache-airflow-providers-keycloak","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.0.1, < 0.7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.0.1, < 0.7.0","eol":null,"hubHref":"/vendor/apache/apache-airflow-providers-keycloak"},{"vendor":"PyPI","product":"apache-airflow-providers-keycloak","name":"apache-airflow-providers-keycloak","label":"apache-airflow-providers-keycloak","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/apache-airflow-providers-keycloak","purlType":"pypi","versions":[{"text":"≥ 0.0.1, < 0.7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.0.1, < 0.7.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/apache/airflow/pull/64114","label":"github.com/apache/airflow/pull/64114","hostname":"github.com","tags":["Patch","WEB","Issue Tracking"]},{"url":"https://lists.apache.org/thread/kc0odpr70hbqhdb9ksnz42fkqz2xld9q","label":"lists.apache.org/thread/kc0odpr70hbqhdb9ksnz42fkqz2xld9q","hostname":"lists.apache.org","tags":["Vendor Advisory","WEB","Mailing List"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/17/14","label":"www.openwall.com/lists/oss-security/2026/04/17/14","hostname":"www.openwall.com","tags":["WEB","Mailing List","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40948","label":"nvd.nist.gov/vuln/detail/CVE-2026-40948","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/airflow","label":"github.com/apache/airflow","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/apache-airflow-providers-keycloak","label":"pypi.org/project/apache-airflow-providers-keycloak","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-5w6h-pjw6-wvc6","label":"github.com/advisories/GHSA-5w6h-pjw6-wvc6","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-04-18T13:22:41.577Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-20T16:17:53.543Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T03:58:49.131Z","stale":false,"partial":false}}