CVE-2026-137602

Description

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.

Statement

This vulnerability is rated as Moderate impact because successful exploitation requires an authenticated attacker and relies on the non-default parameterized scopes preview feature being explicitly activated. In standard Red Hat Keycloak deployments, this preview functionality is disabled by default, preventing exposure in baseline configurations. In environments where the feature is deliberately enabled and protocol mappers are configured, an authenticated client can extract unauthorized user profile attributes into issued tokens without possessing proper administrative view permissions.

Mitigation

To mitigate this vulnerability, disable the preview feature or remove affected protocol mappers:

1. Disable the parameterized scopes capability by avoiding preview feature activation, or explicitly disable it at startup using the option `--features-disabled=parameterized-scopes` or the environment variable `KC_FEATURES_DISABLED=parameterized-scopes`.
2. Alternatively, in the Keycloak Administration Console, review configured Client Scopes across realms and delete or reconfigure any "Parameterized Scope User Property" protocol mappers.

Warning: Modifying server configuration flags or environment variables requires restarting the Keycloak service, which will temporarily interrupt authentication services.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score5.3N/AN/A
Attack VectorNetworkN/AN/A
Attack ComplexityHighN/AN/A
Privileges RequiredLowN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityHighN/AN/A
Integrity ImpactNoneN/AN/A
Availability ImpactNoneN/AN/A

Vector

Red Hat: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Understanding the Weakness (CWE)

Access Control

Technical Impact: Bypass Protection Mechanism

Access control checks for specific user data or functionality can be bypassed.

Access Control

Technical Impact: Gain Privileges or Assume Identity

Horizontal escalation of privilege is possible (one user can view/modify information of another user).

Access Control

Technical Impact: Gain Privileges or Assume Identity

Vertical escalation of privilege is possible if the user-controlled key is actually a flag that indicates administrator status, allowing the attacker to gain administrative access.

Frequently Asked Questions

Want to get errata notifications? Sign up here.