Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation
A flaw was found in Keycloak's Dynamic Client Registration (DCR) security policy management. The "Allowed Protocol Mapper Types" policy, which restricts which types of data mappers a client can use, fails to re-validate the mapper type during a client update if the mapper's configuration remains unchanged. An attacker with client registration privileges can exploit this by first registering an allowed mapper type with a malicious configuration and then swapping it for a restricted, high-privilege mapper type (such as one that hardcodes administrative roles). This allows the attacker to gain full administrative access to the Keycloak realm.
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2026-15572US | — | — | ||
A flaw was found in Keycloak's Dynamic Client Registration (DCR) security policy management. The "Allowed Protocol Mapper Types" policy, which restricts which types of data mappers… | ||||
references
External citations — patches, advisories, analysis.
- https://access.redhat.com/errata/RHSA-2026:50846ADVISORY
- https://access.redhat.com/errata/RHSA-2026:50847ADVISORY
- https://access.redhat.com/errata/RHSA-2026:50848ADVISORY
- https://access.redhat.com/errata/RHSA-2026:50849ADVISORY
- https://access.redhat.com/security/cve/CVE-2026-15572ADVISORY
- https://bugzilla.redhat.com/show_bug.cgi?id=2499592ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-15572WEB
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan