Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-97848

Опубликовано: 05 нояб. 2026
Источник: redhat
CVSS3: 6.5

Описание

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 7keycloak-servicesNot affected
Red Hat build of Keycloak 26.4rhbk/keycloak-operator-bundleFixedRHSA-2026:9576006.11.2026
Red Hat build of Keycloak 26.4rhbk/keycloak-rhel9FixedRHSA-2026:9576006.11.2026
Red Hat build of Keycloak 26.4rhbk/keycloak-rhel9-operatorFixedRHSA-2026:9576006.11.2026
Red Hat build of Keycloak 26.4.17keycloak-servicesFixedRHSA-2026:9575906.11.2026
Red Hat build of Keycloak 26.4.17rhbk/keycloak-rhel9FixedRHSA-2026:9575906.11.2026
Red Hat build of Keycloak 26.6rhbk/keycloak-operator-bundleFixedRHSA-2026:9576206.11.2026
Red Hat build of Keycloak 26.6rhbk/keycloak-rhel9FixedRHSA-2026:9576206.11.2026
Red Hat build of Keycloak 26.6rhbk/keycloak-rhel9-operatorFixedRHSA-2026:9576206.11.2026
Red Hat build of Keycloak 26.6.8keycloak-servicesFixedRHSA-2026:9576106.11.2026

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-20
https://bugzilla.redhat.com/show_bug.cgi?id=2540960keycloak-services: keycloak-services: Protocol mapper with jsonType=JSON bypasses token sanitization

6.5 Medium

CVSS3

Связанные уязвимости

CVSS3: 6.5
nvd
23 дня назад

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.

CVSS3: 6.5
debian
23 дня назад

A flaw was found in the token sanitization logic of Keycloak, an open ...

CVSS3: 6.5
github
23 дня назад

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.

CVSS3: 9.8
altlinux
17 дней назад

ALT-PU-2026-21611: package `keycloak` update to version 26.8.2-alt1

CVSS3: 9.8
altlinux
19 дней назад

ALT-PU-2026-21192: package `keycloak` update to version 26.8.2-alt1

6.5 Medium

CVSS3