Red HatCVE-2026-97848
Red Hat token sanitization: attacker could inject forged client roles into...
No fix yet
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 versions
| Package | Affected | Fixed in |
|---|---|---|
| Red Hat Single Sign-On 7 Product | all versions | No fix yet |
| Red Hat build of Keycloak 26.4.17 Product | all versions | No fix yet |
| all versions | No fix yet | |
| Red Hat build of Keycloak 26.6.8 Product | all versions | No fix yet |
| all versions | No fix yet |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- Severity from
- the vendor (its own CVE record or advisory)
- Weakness
- CWE-20
- www.cve.org/CVERecord?id=CVE-2026-97848
- nvd.nist.gov/vuln/detail/CVE-2026-97848
- access.redhat.com/errata/RHSA-2026:95759
- access.redhat.com/errata/RHSA-2026:95760
- access.redhat.com/errata/RHSA-2026:95761
- access.redhat.com/errata/RHSA-2026:95762
- access.redhat.com/security/cve/CVE-2026-97848
- bugzilla.redhat.com/show_bug.cgi?id=2540960