What’s Vulnerable › Vulnerabilities
CVE-2026-97848: Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-11-06 · updated 2026-11-09
- Weakness: CWE-20
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.
Affected products
- Red Hat build of Keycloak 26.4: all versions — fixed in 26.4.17-2
How to fix
Upgrade to a fixed version: Red Hat build of Keycloak 26.4 26.4.17-2. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/errata/RHSA-2026:95759
- https://access.redhat.com/errata/RHSA-2026:95760
- https://access.redhat.com/errata/RHSA-2026:95761
- https://access.redhat.com/errata/RHSA-2026:95762
- https://access.redhat.com/security/cve/CVE-2026-97848
- https://bugzilla.redhat.com/show_bug.cgi?id=2540960
Get alerted when CVE-2026-97848 or the next vulnerability affects your stack