Skip to content
Fencer Intel
medium 6.5

CVE-2026-97848 json

Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization

published 6d ago modified 2d ago also EUVD-2026-117923

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 27%
public exploits
0
none known

Summary

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.

Patch / fix

  • Red Hat Red Hat build of Keycloak 26.4 26.4-29, 26.4-30, 26.4.17-2
  • Red Hat Red Hat build of Keycloak 26.6 26.6-24, 26.6.8-2

Is CVE-2026-97848 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-97848 updated cvss 6.5

keycloak-services: keycloak-services: Protocol mapper with jsonType=JSON bypasses token sanitization

  • Red Hat build of Keycloak 26.4 rhbk/keycloak-rhel9 26.4-29, rhbk/keycloak-rhel9-operator 26.4-30, rhbk/keycloak-operator-bundle 26.4.17-2
    fixed: vendor fix RHSA-2026:95760
  • Red Hat build of Keycloak 26.4.17
    fixed: vendor fix RHSA-2026:95759
  • Red Hat build of Keycloak 26.6 rhbk/keycloak-rhel9 26.6-24, rhbk/keycloak-rhel9-operator 26.6-24, rhbk/keycloak-operator-bundle 26.6.8-2
    fixed: vendor fix RHSA-2026:95762
  • Red Hat build of Keycloak 26.6.8
    fixed: vendor fix RHSA-2026:95761
  • Red Hat Single Sign-On 7 keycloak-services 18.0.19.redhat-00002
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2d ago

Exploit prediction

0.34% chance of exploitation in the next 30 days, higher than 27% of all scored CVEs (FIRST EPSS, 2026-11-11).

CVSS scores

assigned by version score vector
CNA 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Affected products

  • Red Hat Red Hat build of Keycloak 26.4
  • Red Hat Red Hat build of Keycloak 26.4.17
  • Red Hat Red Hat build of Keycloak 26.6
  • Red Hat Red Hat build of Keycloak 26.6.8
  • Red Hat Red Hat Single Sign-On 7

Classification

Weakness
  • CWE-20 Improper Input Validation

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.