CVE-2026-97848
A flaw was found in the token sanitization logic of Keycloak, an …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- access.redhat.com/security/cve/CVE-2026-97848
- bugzilla.redhat.com/show_bug.cgi?id=2540960
- access.redhat.com/errata/RHSA-2026:95760
- access.redhat.com/errata/RHSA-2026:95761
- access.redhat.com/errata/RHSA-2026:95759
- access.redhat.com/errata/RHSA-2026:95762
- nvd.nist.gov/vuln/detail/CVE-2026-97848
- cve.org/CVERecord?id=CVE-2026-97848
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.