Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-97848— Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization

Quick assessment

Affected
Red Hat Red Hat build of Keycloak 26.4
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

在开源身份与访问管理解决方案 Keycloak 的令牌清洗逻辑中发现了一个漏洞。当协议映射器被配置为使用 JSON 类型输出结构化声明时,该问题会被触发。原本旨在移除未授权角色映射的安全检查仅针对标准的 Java 映射(Map)对象,无法识别基于 Jackson 库生成的 JSON 对象。这使得攻击者能够将伪造的客户端角色注入到安全令牌中,从而可能导致对受保护资源的未授权访问。

CVSS 6.5 · Medium

Possible ATT&CK Techniques 1 AI

T1558.004 · AS-REP Roasting
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-97848

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
输入验证不恰当
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Red Hat Red Hat build of Keycloak 26.4 26.4-29 ~ * cpe:/a:redhat:build_keycloak:26.4::el9
Red Hat Red Hat build of Keycloak 26.4 26.4.17-2 ~ * cpe:/a:redhat:build_keycloak:26.4::el9
Red Hat Red Hat build of Keycloak 26.4 26.4-30 ~ * cpe:/a:redhat:build_keycloak:26.4::el9
Red Hat Red Hat build of Keycloak 26.6.8 - cpe:/a:redhat:build_keycloak:26.6::el9
Red Hat Red Hat build of Keycloak 26.6.8 - cpe:/a:redhat:build_keycloak:26.6::el9
Red Hat Red Hat Single Sign-On 7 - cpe:/a:redhat:red_hat_single_sign_on:7

II. Public POCs for CVE-2026-97848

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-97848

请登录查看更多情报信息。

Other References for CVE-2026-97848 (4)

Same Patch Batch · Red Hat · 2026-11-06 · 15 CVEs total

CVE-2026-109081 6.8 MEDIUM Keycloak-services: keycloak-services: injection of roles into realm default-roles via dcr
CVE-2026-19688 6.8 MEDIUM Keycloak-services: keycloak-services: admin api missing audience check
CVE-2026-123037 6.7 MEDIUM Ansible-core: user module generate_ssh_key follows a symlinked ~/.ssh enabling local privi
CVE-2026-96547 6.5 MEDIUM Keycloak-services: keycloak-services: dcr registration-time claim-path gap allows forging
CVE-2026-9797 6.5 MEDIUM Keycloak: keycloak: privilege escalation via client authentication manipulation by an auth
CVE-2026-107124 6.4 MEDIUM Keycloak-services: keycloak-services: oidc logout endpoint session fixation via id_token_h
CVE-2026-97367 6.4 MEDIUM Keycloak-services: keycloak-services: dcr azp and sid claim substitution allows account re
CVE-2026-120749 6.2 MEDIUM Dbus: dbus-daemon: dbus-daemon aborts (reply_serial != 0) when a broadcast from the driver
CVE-2026-96460 5.4 MEDIUM Keycloak-services: keycloak-services: indefinite access token renewal via standard token e
CVE-2026-92856 4.9 MEDIUM Keycloak-services: keycloak-services: saml broker ignores proxyrestriction delegation cons
CVE-2026-121837 4.3 MEDIUM Quarkus-rest-data-panache: quarkus-rest-data-panache: getter-level @securefield ignored fo
CVE-2026-96447 4.2 MEDIUM Keycloak-services: keycloak-services: stateless token preferred_username fallback enables
CVE-2026-83493 Distributed-workloads: github actions pinned by mutable tag/branch, including third-party
CVE-2026-83494 Training-operator: pytorchjob validateupdate casts oldjob from newobj, bypassing managedby

IV. Related Vulnerabilities