CVE-2026-97848 Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization
MediumCVSS 6.5
EPSS 0.48%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
12 packages: 1 fixed, 10 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/keycloak-services(Red Hat build_keycloak 26.4 el9) | All versions | No fix listed | No fix yet |
| redhat/keycloak-services(Red Hat build_keycloak 26.6 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-operator-bundle:26.4.17-2(Red Hat build_keycloak 26.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-operator-bundle:26.6.8-2(Red Hat build_keycloak 26.6 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9(Red Hat build_keycloak 26.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9(Red Hat build_keycloak 26.6 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9-operator:26.4-30(Red Hat build_keycloak 26.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9-operator:26.6-24(Red Hat build_keycloak 26.6 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9:26.4-29(Red Hat build_keycloak 26.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9:26.6-24(Red Hat build_keycloak 26.6 el9) | All versions | No fix listed | No fix yet |
| redhat build keycloak | < 26.4-29; < 26.4-30; < 26.4.17-2; < 26.6-24 +3 more | 26.4-29, 26.4-30, 26.4.17-2, 26.6-24, 26.6.8-2 | Fixed |
| redhat red hat single sign on | = 7 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/rhbk/keycloak-operator-bundle:26.4.17-2(Red Hat:build_keycloak:26.4::el9) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9:26.4-29(Red Hat:build_keycloak:26.4::el9) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9-operator:26.4-30(Red Hat:build_keycloak:26.4::el9) | All versions | No fix listed |
| redhat/keycloak-services(Red Hat:build_keycloak:26.4::el9) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9(Red Hat:build_keycloak:26.4::el9) | All versions | No fix listed |
| redhat/rhbk/keycloak-operator-bundle:26.6.8-2(Red Hat:build_keycloak:26.6::el9) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9:26.6-24(Red Hat:build_keycloak:26.6::el9) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9-operator:26.6-24(Red Hat:build_keycloak:26.6::el9) | All versions | No fix listed |
| redhat/keycloak-services(Red Hat:build_keycloak:26.6::el9) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9(Red Hat:build_keycloak:26.6::el9) | All versions | No fix listed |
| redhat build keycloak | < 26.4.17-2 | 26.4.17-2 |
| redhat build keycloak | < 26.4-29 | 26.4-29 |
| redhat build keycloak | < 26.4-30 | 26.4-30 |
| redhat build keycloak | = 26.4 | No fix listed |
| redhat build keycloak | < 26.6.8-2 | 26.6.8-2 |
| redhat build keycloak | < 26.6-24 | 26.6-24 |
| redhat build keycloak | = 26.6 | No fix listed |
| redhat red hat single sign on | = 7 | No fix listed |
References
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHSA-2026:95760 patch vendor-advisory
- RHSA-2026:95759 patch vendor-advisory
- RHSA-2026:95762 patch vendor-advisory
- RHSA-2026:95761 patch vendor-advisory
- Red Hat Bugzilla 2540960 issue-tracking
- www.cve.org
- nvd.nist.gov
- ENISA EUVD EUVD-2026-117923 third-party-advisory