CVE-2026-97848
published medium CVSS 3.1 · 6.5Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | rhbk/keycloak-operator-bundleRed Hat build of Keycloak 26.4 · 26.4.17-2 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.4 · 26.4-29 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 26.4 · 26.4-30 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | keycloak-servicesRed Hat build of Keycloak 26.4.17 | Unaffected | Not required | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.4.17 | Unaffected | Not required | redhat |
| Red Hat | — | rhbk/keycloak-operator-bundleRed Hat build of Keycloak 26.6 · 26.6.8-2 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.6 · 26.6-24 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 26.6 · 26.6-24 and later · Other versions: affected | Unaffected | Not stated | redhat |
Show 3 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | keycloak-servicesRed Hat build of Keycloak 26.6.8 | Unaffected | Not required | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.6.8 | Unaffected | Not required | redhat |
| Red Hat | — | keycloak-servicesRed Hat Single Sign-On 7 | Unaffected | Not required | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat build of Keycloak 26.4 | 26.4.17-2 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.4 | 26.4-29 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.4 | 26.4-30 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.4.17 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.4.17 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6 | 26.6.8-2 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6 | 26.6-24 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6 | 26.6-24 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6.8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6.8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Single Sign-On 7 | Default: unaffected | redhat · cna |
Weaknesses
1- CWE-20 Improper Input Validation
References
6- RHSA-2026:95759 https://access.redhat.com/errata/RHSA-2026:95759
- RHSA-2026:95760 https://access.redhat.com/errata/RHSA-2026:95760
- RHSA-2026:95761 https://access.redhat.com/errata/RHSA-2026:95761
- RHSA-2026:95762 https://access.redhat.com/errata/RHSA-2026:95762
- https://access.redhat.com/security/cve/CVE-2026-97848
- RHBZ#2540960 https://bugzilla.redhat.com/show_bug.cgi?id=2540960
Provider assertions
2redhat · cna
Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dee1358cd31f87f502cbb427e885d3edaea0cd2ca18598437ec273be2842423f
- Ingested
- 09 Nov 2026, 22:53:00 UTC
- Source record
- Official CVE record