Описание
A flaw was found in the token sanitization logic of Keycloak, an open source identity and access management solution. The issue occurs when a protocol mapper is configured to emit structured claims using the JSON type. The security check designed to remove unauthorized role mappings only looks for standard Java maps and fails to recognize Jackson based JSON objects. This allows an attacker to inject forged client roles into security tokens, which could lead to unauthorized access to protected resources.
Отчет
The Red Hat Product Security team has assessed the severity of this vulnerability as Moderate, given that exploitation requires the attacker to have existing client registration privileges or a valid Initial Access Token. Successful exploitation allows an attacker to forge client-role mappings in signed tokens, potentially leading to unauthorized access to resource servers. The vulnerability's root cause is an incomplete type check in the token sanitization logic that fails to account for Jackson ObjectNode values when jsonType=JSON is used.
Меры по смягчению последствий
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Single Sign-On 7 | keycloak-services | Not affected | ||
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-operator-bundle | Fixed | RHSA-2026:95760 | 06.11.2026 |
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-rhel9 | Fixed | RHSA-2026:95760 | 06.11.2026 |
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-rhel9-operator | Fixed | RHSA-2026:95760 | 06.11.2026 |
| Red Hat build of Keycloak 26.4.17 | keycloak-services | Fixed | RHSA-2026:95759 | 06.11.2026 |
| Red Hat build of Keycloak 26.4.17 | rhbk/keycloak-rhel9 | Fixed | RHSA-2026:95759 | 06.11.2026 |
| Red Hat build of Keycloak 26.6 | rhbk/keycloak-operator-bundle | Fixed | RHSA-2026:95762 | 06.11.2026 |
| Red Hat build of Keycloak 26.6 | rhbk/keycloak-rhel9 | Fixed | RHSA-2026:95762 | 06.11.2026 |
| Red Hat build of Keycloak 26.6 | rhbk/keycloak-rhel9-operator | Fixed | RHSA-2026:95762 | 06.11.2026 |
| Red Hat build of Keycloak 26.6.8 | keycloak-services | Fixed | RHSA-2026:95761 | 06.11.2026 |
Показывать по
Дополнительная информация
Статус:
6.5 Medium
CVSS3
Связанные уязвимости
A flaw was found in the token sanitization logic of Keycloak, an open source identity and access management solution. The issue occurs when a protocol mapper is configured to emit structured claims using the JSON type. The security check designed to remove unauthorized role mappings only looks for standard Java maps and fails to recognize Jackson based JSON objects. This allows an attacker to inject forged client roles into security tokens, which could lead to unauthorized access to protected resources.
A flaw was found in the token sanitization logic of Keycloak, an open ...
A flaw was found in the token sanitization logic of Keycloak, an open source identity and access management solution. The issue occurs when a protocol mapper is configured to emit structured claims using the JSON type. The security check designed to remove unauthorized role mappings only looks for standard Java maps and fails to recognize Jackson based JSON objects. This allows an attacker to inject forged client roles into security tokens, which could lead to unauthorized access to protected resources.
ALT-PU-2026-21611: package `keycloak` update to version 26.8.2-alt1
ALT-PU-2026-21192: package `keycloak` update to version 26.8.2-alt1
6.5 Medium
CVSS3