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.
Severity (CVSS)
| Base score | 6.5 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| Provided by | CNA |
Weaknesses
- CWE-20 — Improper Input Validation
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Build of Keycloak | — |
| Red Hat | Red Hat Build of Keycloak | — |
| Red Hat | Red Hat Single Sign-On 7 | — |
References
- https://access.redhat.com/security/cve/CVE-2026-97848 (vdb-entry x_refsource_REDHAT)
- https://bugzilla.redhat.com/show_bug.cgi?id=2540960 (issue-tracking x_refsource_REDHAT)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 06 Nov 2026 08:03 UTC.