CVE-2026-137602 in Keycloak
Summary
by MITRE • 11/27/2026
A flaw was found in Keycloak. This vulnerability enables information disclosure when the parameterized-scopes feature is enabled. The protocol mapper fails to enforce authorization checks for certain scope parameter types during token and authorization requests. An authenticated remote attacker can exploit this flaw by supplying a crafted scope parameter to retrieve sensitive profile attributes of other users without authorization.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified in Keycloak represents a critical failure in access control logic, specifically within the implementation of the protocol mapper when the parameterized-scopes feature is active. This architectural component is responsible for translating internal user attributes into claims within security tokens or authorization responses. The core technical flaw lies in the insufficient validation of scope parameters during token and authorization request processing. Instead of strictly enforcing that a requesting client possesses the necessary permissions to access specific data fields, the system fails to apply adequate authorization checks for certain types of scope definitions. This oversight allows an attacker who has already obtained valid authentication credentials to manipulate the scope parameter included in their requests. By crafting these parameters with malicious intent, the attacker can bypass standard permission boundaries that would normally restrict access to sensitive user profile attributes belonging to other users.
From a technical perspective, this issue is classified under CWE-284, which describes Improper Access Control, and aligns with MITRE ATT&CK technique T1078, Valid Accounts, as the exploitation requires prior authentication but leverages those valid credentials to escalate privileges or access unauthorized data. The vulnerability effectively transforms a standard authenticated session into a vector for lateral movement within the user base of an organization using Keycloak for identity management. When an attacker supplies a crafted scope parameter, they are able to extract sensitive profile attributes such as email addresses, phone numbers, internal identifiers, or other personally identifiable information that was not intended to be shared with their specific client application. This behavior violates the principle of least privilege and undermines the integrity of the OAuth 2.0 and OpenID Connect protocols by allowing data leakage through misconfigured scope definitions rather than direct system compromise.
The operational impact of this vulnerability is significant for any organization relying on Keycloak as its central identity provider. The disclosure of sensitive user profile attributes can lead to severe privacy violations, regulatory non-compliance with standards such as GDPR or HIPAA, and potential social engineering attacks where attackers use harvested personal data to target individuals more effectively. Furthermore, the ability to retrieve information about other users without authorization compromises the confidentiality guarantees provided by the identity platform. This could facilitate further reconnaissance efforts against high-value targets within an enterprise environment, potentially leading to account takeover attempts or deeper infrastructure penetration if additional contextual information is exposed.
To mitigate this risk, organizations must ensure that their Keycloak instances are updated to versions where the protocol mapper logic has been corrected to enforce strict authorization checks for all scope parameter types. Administrators should review and tighten the configuration of client scopes, ensuring that only necessary attributes are mapped and accessible. It is also advisable to audit existing clients to verify that they do not request overly broad or sensitive scopes unless explicitly required by business logic. Implementing robust monitoring and logging for token requests can help detect anomalous patterns indicative of scope parameter manipulation attempts. Until patches are applied, limiting the exposure of sensitive attributes in public-facing configurations and restricting client permissions to the minimum necessary set of claims will reduce the attack surface available to authenticated adversaries seeking to exploit this information disclosure flaw.