# CVE-2026-97848: Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization

- Severity: Medium 6.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-11-06T06:03:03.806Z
- Modified: 2026-11-09T23:17:27.183Z
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- rhbk/keycloak-operator-bundle: no versions given (not affected: from 26.4.17-2 before *; from 26.6.8-2 before *)
- rhbk/keycloak-rhel9: no versions given (not affected: from 26.4-29 before *; from 26.6-24 before *)
- rhbk/keycloak-rhel9-operator: no versions given (not affected: from 26.4-30 before *; from 26.6-24 before *)
- keycloak-services: no versions given

## References

- <https://access.redhat.com/errata/RHSA-2026:95759> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:95760> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:95761> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:95762> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-97848> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2540960> (issue-tracking)

## Sources

- CVE List: [CVE-2026-97848](https://www.cve.org/CVERecord?id=CVE-2026-97848), CVE Terms of Use, modified 2026-11-09
- NVD: [CVE-2026-97848](https://nvd.nist.gov/vuln/detail/CVE-2026-97848), Public domain, modified 2026-11-09

---

Page: https://cve.day/CVE-2026-97848 · Whole record: https://cve.day/CVE-2026-97848.json · Rebuilt by cve.day 2026-11-25T22:59:49.222Z
