{"id":"CVE-2026-9791","aliases":["CVE-2026-9791","GHSA-4q93-v92x-p89f"],"related":[],"kind":"vulnerability","state":"published","title":"Keycloak-rhel9: organization data leak after feature disabled in keycloak","summary":"A flaw was found in Keycloak. An authenticated user with existing organization membership can exploit this flaw by accessing user-facing APIs, such as the account API or by requesting an OpenID Connect (OIDC) token with the 'organization' scope. This allows organization metadata to be disclosed in tokens, even after an administrator has explicitly disabled the Organizations feature, potentially leading to incorrect authorization decisions by resource servers.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in Keycloak. An authenticated user with existing organization membership can exploit this flaw by accessing user-facing APIs, such as the account API or by requesting an OpenID Connect (OIDC) token with the 'organization' scope. This allows organization metadata to be disclosed in tokens, even after an administrator has explicitly disabled the Organizations feature, potentially leading to incorrect authorization decisions by resource servers.","source":"cvelist"},{"lang":"es","text":"Se encontró una vulnerabilidad en Keycloak. Un usuario autenticado con una membresía de organización existente puede explotar esta vulnerabilidad al acceder a las API orientadas al usuario, como la API de cuenta, o al solicitar un token de OpenID Connect (OIDC) con el ámbito ’organization’. Esto permite que los metadatos de la organización se divulguen en los tokens, incluso después de que un administrador haya deshabilitado explícitamente la función de Organizaciones, lo que podría llevar a decisiones de autorización incorrectas por parte de los servidores de recursos.","source":"nvd"}],"published":"2026-05-28T03:27:08.241Z","modified":"2026-10-26T12:10:00.130Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"type":"rpm","introduced":"26.4.13-1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4-19","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4-19","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4.13","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.6.3-3","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.6-6","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.6-6","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6.3","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"26.5.0","status":"affected","fixed":"26.6.3"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-server-spi-private","purl":"pkg:maven/org.keycloak/keycloak-server-spi-private","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"26.5.0","status":"affected","fixed":"26.6.3"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"26.4.7"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-server-spi-private","purl":"pkg:maven/org.keycloak/keycloak-server-spi-private","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"26.4.7"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[],"vendor":"redhat","product":"build_of_keycloak","cpe":"cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:-:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:25097","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:25098","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:30049","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:30050","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-9791","tags":["mitigation","vdb-entry","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482458","tags":["issue-tracking","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9791","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/issues/49431","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/pull/49541","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/pull/49678","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/pull/49680","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/commit/0e706e7c83d1e971b48656ad9e674eec6adc225b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/commit/a77c60f2f3e0793046add44120579871e92553df","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/commit/f19e1f2b4e998116d4e321f50ecf99c0f87b862f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"],"sources":["ghsa"]}],"credits":["Red Hat would like to thank Evan Hendra (Independent Security Researcher) for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-28T12:18:58.165Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-9791","url":"https://www.cve.org/CVERecord?id=CVE-2026-9791","licence":"CVE Terms of Use","modified":"2026-06-26T06:46:31.401Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4q93-v92x-p89f","url":"https://github.com/advisories/GHSA-4q93-v92x-p89f","licence":"CC-BY-4.0","modified":"2026-07-01T21:41:29.455Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-9791","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9791","licence":"Public domain","modified":"2026-10-26T12:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:22.725Z","epss":{"score":0.00215,"percentile":0.12611,"date":"2026-12-01T12:00:22.000Z"}}