{"id":"CVE-2026-9791","published":"2026-05-28T03:27:08Z","modified":"2026-06-26T06:46:31Z","title":"Keycloak-rhel9: organization data leak after feature disabled in keycloak","vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00372,"percentile":0.23168,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:25097","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:25098","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:30049","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:30050","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-9791","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482458","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":4.63},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","versions":["all versions"]}],"workarounds":{"items":["Administrators should verify that disabling the Organizations feature properly blocks all organization-related functionality. Consider implementing additional access controls or removing organization memberships before disabling the feature."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-28T12:18:58.165713Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-server-spi-private","vulnerableRanges":[">=26.5.0, <26.6.3","<=26.4.7"],"patched":["26.6.3"],"from":["GHSA-4q93-v92x-p89f"],"provenance":"source"},{"ecosystem":"Maven","package":"org.keycloak:keycloak-services","vulnerableRanges":[">=26.5.0, <26.6.3","<=26.4.7"],"patched":["26.6.3"],"from":["GHSA-4q93-v92x-p89f"],"provenance":"source"}],"summary":{"text":"A flaw in the Red Hat build of Keycloak 26.4 causes organization metadata to be disclosed in tokens and user-facing APIs even after administrators have disabled the Organizations feature. An attacker who is already authenticated and holds existing organization membership can exploit it over the network by using the account API or requesting an OpenID Connect token with the 'organization' scope, with no user interaction required, potentially leading resource servers to make incorrect authorization decisions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:14Z"},"euvd":{"id":"EUVD-2026-32701","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-build-of-keycloak-26-4-cve-2017-2582","parents":[{"from":"CVE-2020-27826","to":"CVE-2026-9791","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/services/messages/Messages.java","services/src/main/java/org/keycloak/services/resources/account/AccountRestService.java"],"commits":["https://github.com/keycloak/keycloak/commit/dae4a3eaf26590b8d441b8e4bec3b700ee303b72","https://github.com/keycloak/keycloak/commit/0e706e7c83d1e971b48656ad9e674eec6adc225b","https://github.com/keycloak/keycloak/commit/a77c60f2f3e0793046add44120579871e92553df"],"basis":"shared function","functions":["Messages"]}]},{"from":"CVE-2022-1274","to":"CVE-2026-9791","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/services/messages/Messages.java"],"commits":["https://github.com/keycloak/keycloak/commit/fc3c61235fa30132123c17ed8702ff7b3a672fe9","https://github.com/keycloak/keycloak/commit/0e706e7c83d1e971b48656ad9e674eec6adc225b","https://github.com/keycloak/keycloak/commit/a77c60f2f3e0793046add44120579871e92553df"],"basis":"shared function","functions":["Messages"]}]},{"from":"CVE-2023-3597","to":"CVE-2026-9791","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server-spi-private/src/main/java/org/keycloak/events/Errors.java","services/src/main/java/org/keycloak/protocol/oidc/TokenManager.java","services/src/main/java/org/keycloak/services/messages/Messages.java"],"commits":["https://github.com/keycloak/keycloak/commit/aa634aee882892960a526e49982806e103c8a432","https://github.com/keycloak/keycloak/commit/0e706e7c83d1e971b48656ad9e674eec6adc225b","https://github.com/keycloak/keycloak/commit/a77c60f2f3e0793046add44120579871e92553df"],"basis":"shared function","functions":["Errors","Messages"]}]},{"from":"CVE-2024-11736","to":"CVE-2026-9791","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/services/resources/account/AccountRestService.java"],"commits":["https://github.com/keycloak/keycloak/commit/7a76858fe4aa39a39fb6b86dd3d2c113d9c59854","https://github.com/keycloak/keycloak/commit/0e706e7c83d1e971b48656ad9e674eec6adc225b","https://github.com/keycloak/keycloak/commit/a77c60f2f3e0793046add44120579871e92553df"],"basis":"rarely changed file"}]},{"from":"CVE-2026-1529","to":"CVE-2026-9791","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/authentication/actiontoken/inviteorg/InviteOrgActionTokenHandler.java","services/src/main/java/org/keycloak/authentication/forms/RegistrationPage.java","services/src/main/java/org/keycloak/authentication/forms/RegistrationUserCreation.java","services/src/main/java/org/keycloak/organization/utils/Organizations.java","services/src/main/java/org/keycloak/services/resources/LoginActionsService.java"],"commits":["https://github.com/keycloak/keycloak/commit/82cd7941d1dd28fa14a67a6e6b912301f1a5e1a1","https://github.com/keycloak/keycloak/commit/8fc9a98026106a326f4faa98d4c9a48341ace2d7","https://github.com/keycloak/keycloak/commit/0e706e7c83d1e971b48656ad9e674eec6adc225b","https://github.com/keycloak/keycloak/commit/a77c60f2f3e0793046add44120579871e92553df"],"basis":"shared function","functions":["RegistrationPage","handleToken","preHandleToken","validateOrganizationInvitation"]}]}],"packageHistory":[{"cve":"CVE-2026-2603","published":"2026-03-18","fixed":"26.5.5","kev":false},{"cve":"CVE-2026-3190","published":"2026-03-26","fixed":"26.5.6","kev":false,"link":{"from":"CVE-2026-3190","to":"CVE-2026-9791","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.keycloak:keycloak-server-spi-private","fromFixed":"26.5.6","toFixed":"26.6.3","daysApart":63}]}},{"cve":"CVE-2026-9704","published":"2026-05-27","fixed":"26.6.3","kev":false},{"cve":"CVE-2026-9791","published":"2026-05-28","fixed":"26.6.3","kev":false}],"package":"Maven:org.keycloak:keycloak-server-spi-private"}}