CVE-2026-12388

Medium

Description

A flaw was found in the Identity Provider (IdP) mapper component of Keycloak, which is used to manage how user information from external services is mapped to Keycloak users. An administrator with limited permissions to manage identity providers can exploit this flaw by creating a "Hardcoded Role" mapper that assigns high-level administrative roles (like realm-admin) to themselves or others. This allows a restricted administrator to bypass security checks and gain full control over the entire realm.

SeverityMedium
CVSS6.5
Exploit probability—
ProductRedhat Build Of Keycloak
PublishedJun 30, 2026
First seenJun 30, 2026
Weakness typeCWE-266CWE-266

How to fix

Affected products

ProductAffected versionsFixed in
redhat build_of_keycloakNo range specified—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.