{"answers":{"affected":"3 open source packages ship an affected version, including apache-airflow-providers-keycloak. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40948 in the wild and no public exploit code.","fix":"Upgrade apache-airflow-providers-keycloak to 0.7.0 or later.","what":"CVE-2026-40948 is a medium-severity vulnerability in Apache Airflow Providers Keycloak, published on 18 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-40948 and fix it if it is affected.\n\nWhat it is: CVE-2026-40948 is a medium-severity vulnerability in Apache Airflow Providers Keycloak, published on 18 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-40948 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- apache-airflow-providers-keycloak (PyPI): affected from 0.0.1; fixed in 0.7.0\n- apache-airflow-providers-keycloak (PyPI): affected from 0.0.1; fixed in 0.7.0\n- apache-airflow-providers-keycloak (PyPI): affected from 0.0.1; fixed in 0.7.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40948/ (Markdown: https://insights.sbomify.com/CVE-2026-40948/index.md)","id":"CVE-2026-40948","markdown":"https://insights.sbomify.com/CVE-2026-40948/index.md","name":"CVE-2026-40948","record":{"aliases":["GHSA-5w6h-pjw6-wvc6","PYSEC-2026-2369"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Airflow Keycloak provider","requires_auth":"none","summary":"Attackers can force victims into attacker-controlled Airflow sessions via missing OAuth state validation, potentially harvesting stored credentials.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"apache-airflow-providers-keycloak","vendor":"apache"}],"cvss":{"score":5.4,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache Airflow Providers Keycloak: OAuth Login CSRF — Missing State Parameter in Keycloak Auth Manager","id":"CVE-2026-40948","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"csrf","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Buffer overflow in Windows clients prior to 14.50","id":"CVE-2026-40949"},"packages":[{"ecosystem":"PyPI","fixed":["0.7.0"],"introduced":["0.0.1"],"last_affected":[],"package":"apache-airflow-providers-keycloak","purl":null,"source":"GHSA-5w6h-pjw6-wvc6"},{"ecosystem":"PyPI","fixed":["0.7.0"],"introduced":["0.0.1"],"last_affected":[],"package":"apache-airflow-providers-keycloak","purl":"pkg:pypi/apache-airflow-providers-keycloak","source":"GHSA-5w6h-pjw6-wvc6"},{"ecosystem":"PyPI","fixed":["0.7.0"],"introduced":["0.0.1"],"last_affected":[],"package":"apache-airflow-providers-keycloak","purl":"pkg:pypi/apache-airflow-providers-keycloak","source":"PYSEC-2026-2369"}],"prev":{"headline":"Other in libfido2","id":"CVE-2026-40947"},"products":["Apache Airflow Providers Keycloak"],"published":"2026-04-18","related":[{"cvss_score":9.8,"headline":"Apache Airflow Keycloak provider: Any realm client's credentials mint an Airflow session JWT","id":"CVE-2026-76187","kev_date_added":null,"published":"2026-09-16"},{"cvss_score":9.1,"headline":"Apache Airflow Keycloak provider: Keycloak token cookies not bound to Airflow session identity","id":"CVE-2026-76186","kev_date_added":null,"published":"2026-09-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-20","vendors":["Apache Software Foundation"]},"summary":"Attackers can force victims into attacker-controlled Airflow sessions via missing OAuth state validation, potentially harvesting stored credentials.","url":"https://insights.sbomify.com/CVE-2026-40948/"}