CVE-2026-137602: Org.keycloak.services: bypass do access check no parameterized scope user property mapper

Published Nov 26, 2026
·
Updated

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.

Other sources

When the parameterized-scopes preview feature is enabled, the

"Parameterized Scope User Property" protocol mapper resolves a user from the scope parameter (username, or email when login with email is enabled) and copies one of that user's attributes into the issued token. The access check that decides whether the authenticated user may see the target user's data is only applied when the scope's parameter type is username, user-delegation or client-delegation. For every other parameter type (string, which is the default, plus integer, boolean and custom) the check is skipped, but the lookup and attribute mapping still run. An authenticated user can therefore request a scope such as "share-with:username" and receive the users's attribute (for example email, id or any user-profile attribute) as a claim in their own token, without holding any view-users permission and without consent or interaction from the user. The flaw is a bypass of the earlier fix for keycloak/keycloak#51061 (fixed in 26.7.2 and 26.8.0 by keycloak/keycloak#51063), which only covered the username-type family. Affected endpoints are the token endpoint and the authorization endpoint of the OIDC protocol (/realms/{realm}/protocol/openid-connect/token and /auth), through the "scope" parameter.

— Red Hat

Affected Software

1 affected component
Red Hat Keycloak

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade keycloak/keycloak to a version that resolves this vulnerability.

    Fixed in 26.8.0

Event History

Nov 26, 2026
Data Sourced
via Red Hat·02:40 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·10:55 PM
Data Sourced
via MITRE·10:55 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Deployments are exposed when the parameterized-scopes preview feature is enabled and use the Parameterized Scope User Property protocol mapper. The affected mapper can expose attributes of users selected through a scope parameter.

2

What does an attacker need to exploit it?

An attacker needs to be an authenticated remote user and must be able to submit a crafted scope parameter in a token or authorization request. Exploitation relies on a mapper scope configured with a parameter type other than username, user-delegation, or client-delegation.

3

Are default parameter types affected?

Yes. The string parameter type, which is the default, skips the authorization check while still resolving the target user and mapping an attribute into the issued token. Integer, boolean, and custom parameter types are also described as bypassing the check.

4

What information could be disclosed?

The issued token can contain an attribute from another user's profile selected by the scope parameter. The described example is an email address, but the exposed value depends on which user attribute the mapper is configured to copy.

5

What can be done if patching is not immediately possible?

Disable the parameterized-scopes preview feature or avoid use of the Parameterized Scope User Property protocol mapper. Where the mapper must remain in use, do not use string, integer, boolean, or custom parameter types for scopes that resolve another user.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203