{"id":"CVE-2026-97848","aliases":[],"summary":"Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization","published_at":"2026-11-05T00:00:00Z","modified_at":"2026-11-09T22:46:20.84Z","products":[{"slug":"keycloak","name":"Keycloak","category":"identity"}],"rating":{"severity":"medium","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.003379999892786145,"percentile":0.2777999937534332,"date":"2026-11-19T00:00:00Z"},"priority":7.5,"details":"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_stack":[{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.4.17-2"}]}],"fixed":["26.4.17-2"],"provider":"cvelistv5","source":"CVE-2026-97848","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.4-29"}]}],"fixed":["26.4-29"],"provider":"cvelistv5","source":"CVE-2026-97848","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.4-30"}]}],"fixed":["26.4-30"],"provider":"cvelistv5","source":"CVE-2026-97848","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6.8-2"}]}],"fixed":["26.6.8-2"],"provider":"cvelistv5","source":"CVE-2026-97848","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6-24"}]}],"fixed":["26.6-24"],"provider":"cvelistv5","source":"CVE-2026-97848","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6-24"}]}],"fixed":["26.6-24"],"provider":"cvelistv5","source":"CVE-2026-97848","relation":"self"}],"affected_other":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","status":"not_affected","packages":["keycloak-services"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-97848"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","status":"fixed","packages":["rhbk/keycloak-operator-bundle","rhbk/keycloak-rhel9","rhbk/keycloak-rhel9-operator"],"package_count":3,"fixed":[],"advisories":["RHSA-2026:95760"],"provider":"redhat-vex","source":"CVE-2026-97848"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4.17","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","status":"fixed","packages":[],"package_count":0,"fixed":[],"advisories":["RHSA-2026:95759"],"provider":"redhat-vex","source":"CVE-2026-97848"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","status":"fixed","packages":["rhbk/keycloak-operator-bundle","rhbk/keycloak-rhel9","rhbk/keycloak-rhel9-operator"],"package_count":3,"fixed":[],"advisories":["RHSA-2026:95762"],"provider":"redhat-vex","source":"CVE-2026-97848"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6.8","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","status":"fixed","packages":[],"package_count":0,"fixed":[],"advisories":["RHSA-2026:95761"],"provider":"redhat-vex","source":"CVE-2026-97848"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-4375","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-4375","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-11-05T23:00:00Z","modified_at":"2026-11-11T23:00:00Z","summary":"Keycloak: Mehrere Schwachstellen","details":"Ein Angreifer kann mehrere Schwachstellen in Keycloak ausnutzen, um Sicherheitsvorkehrungen zu umgehen, um einen Denial of Service Angriff durchzuführen und um einen Cross-Site Scripting Angriff durchzuführen.\n\nKeycloak ermöglicht Single Sign-On mit Identity and Access Management für moderne Anwendungen und Dienste.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2026-4375"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-4375.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-4375"},{"type":"WEB","url":"https://www.keycloak.org/2026/11/keycloak-2682-released"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:95759"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:95760"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:95761"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:96040"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:96039"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:96038"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:96037"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:95762"}]},{"provider":"cvelistv5","source_id":"CVE-2026-97848","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-97848","license":"CC-BY-4.0","published_at":"2026-11-06T06:03:03.806Z","modified_at":"2026-11-09T22:46:20.84Z","summary":"Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","source":"CVE-2026-97848"}],"affected":[{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.4.17-2"}]}],"fixed":["26.4.17-2"],"provider":"cvelistv5","source":"CVE-2026-97848","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.4-29"}]}],"fixed":["26.4-29"],"provider":"cvelistv5","source":"CVE-2026-97848","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.4-30"}]}],"fixed":["26.4-30"],"provider":"cvelistv5","source":"CVE-2026-97848","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6.8-2"}]}],"fixed":["26.6.8-2"],"provider":"cvelistv5","source":"CVE-2026-97848","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6-24"}]}],"fixed":["26.6-24"],"provider":"cvelistv5","source":"CVE-2026-97848","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6-24"}]}],"fixed":["26.6-24"],"provider":"cvelistv5","source":"CVE-2026-97848","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:95759"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:95760"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:95761"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:95762"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-97848"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2540960"}]},{"provider":"redhat-vex","source_id":"CVE-2026-97848","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-97848","license":"CC-BY-4.0","published_at":"2026-11-05T00:00:00Z","modified_at":"2026-11-06T06:11:00Z","summary":"keycloak-services: keycloak-services: Protocol mapper with jsonType=JSON bypasses token sanitization","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","source":"CVE-2026-97848"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-97848"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","status":"not_affected","packages":["keycloak-services"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-97848"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","status":"fixed","packages":["rhbk/keycloak-operator-bundle","rhbk/keycloak-rhel9","rhbk/keycloak-rhel9-operator"],"package_count":3,"fixed":[],"advisories":["RHSA-2026:95760"],"provider":"redhat-vex","source":"CVE-2026-97848"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4.17","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","status":"fixed","packages":[],"package_count":0,"fixed":[],"advisories":["RHSA-2026:95759"],"provider":"redhat-vex","source":"CVE-2026-97848"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","status":"fixed","packages":["rhbk/keycloak-operator-bundle","rhbk/keycloak-rhel9","rhbk/keycloak-rhel9-operator"],"package_count":3,"fixed":[],"advisories":["RHSA-2026:95762"],"provider":"redhat-vex","source":"CVE-2026-97848"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6.8","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","status":"fixed","packages":[],"package_count":0,"fixed":[],"advisories":["RHSA-2026:95761"],"provider":"redhat-vex","source":"CVE-2026-97848"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-97848.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-97848"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2540960"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-97848"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97848"}]}],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:95759"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:95760"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:95761"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:95762"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-97848"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2540960"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-97848.json"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-97848"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97848"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-4375","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-4375","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-11-11T23:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-97848","url":"https://www.cve.org/CVERecord?id=CVE-2026-97848","license":"CC-BY-4.0","modified_at":"2026-11-09T22:46:20.84Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-97848","url":"https://access.redhat.com/security/cve/CVE-2026-97848","license":"CC-BY-4.0","modified_at":"2026-11-06T06:11:00Z","relation":"self"}]}
