Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-97848
Published:November 06, 2026
Updated:November 09, 2026
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.
Affected Packages
https://github.com/keycloak/keycloak.git (GITHUB):
Affected version(s) >=7.0.0 <26.8.2 || >=8.0.0 <26.8.2 || >=9.0.0 <26.8.2 || >=10.0.0 <26.8.2 || >=11.0.0 <26.8.2 || >=12.0.0 <26.8.2 || >=13.0.0 <26.8.2 || =14.0.0 <26.8.2 || >=15.0.0 <26.8.2 || >=16.0.0 <26.8.2 || >=17.0.0 <26.8.2 || >=18.0.0 <26.8.2 || >=19.0.0 <26.8.2 || >=20.0.0 <26.8.2 || >=21.0.0 <26.8.2 || >=22.0.0 <26.8.2 || >=23.0.0 <26.8.2 || >=24.0.0 <26.8.2 || >=25.0.0 <26.8.2 || >=26.7.0 <26.8.2
Fix Suggestion:
Update to version 26.8.2
https://github.com/keycloak/keycloak.git (GITHUB):
Affected version(s) >=26.0.0 <26.4.17
Fix Suggestion:
Update to version 26.4.17
https://github.com/keycloak/keycloak.git (GITHUB):
Affected version(s) >=26.5.0 <26.6.8
Fix Suggestion:
Update to version 26.6.8
org.keycloak:keycloak-services (JAVA):
Affected version(s) >=20.0.0 <26.8.2 || >=23.0.0 <26.8.2 || >=26.7.0 <26.8.2 || >=11.0.0 <26.8.2 || >=7.0.0 <26.8.2 || =14.0.0 <26.8.2 || >=21.0.0 <26.8.2 || >=12.0.0 <26.8.2 || >=17.0.0 <26.8.2 || >=24.0.0 <26.8.2 || >=8.0.0 <26.8.2 || >=13.0.0 <26.8.2 || >=16.0.0 <26.8.2 || >=10.0.0 <26.8.2 || >=22.0.0 <26.8.2 || >=19.0.0 <26.8.2 || >=25.0.0 <26.8.2 || >=15.0.0 <26.8.2 || >=9.0.0 <26.8.2 || >=18.0.0 <26.8.2
Fix Suggestion:
Update to version 26.8.2
org.keycloak:keycloak-services (JAVA):
Affected version(s) >=26.5.0 <26.6.8.redhat-00002
Fix Suggestion:
Update to version 26.6.8.redhat-00002
org.keycloak:keycloak-services (JAVA):
Affected version(s) >=26.0.0 <26.4.17.redhat-00002
Fix Suggestion:
Update to version 26.4.17.redhat-00002
Do you need more information?
Contact Us
CVSS v4
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
Improper Input Validation
EPSS
Base Score:
0.34