CVE-2026-97848
mediumA flaw was found in the token sanitization logic of Keycloak, an open source identity and access management solution.
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://access.redhat.com/errata/RHSA-2026:95759 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:95760 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:95761 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:95762 secalert@redhat.com
- https://access.redhat.com/security/cve/CVE-2026-97848 secalert@redhat.com
- https://bugzilla.redhat.com/show_bug.cgi?id=2540960 secalert@redhat.com

