Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation
Overview
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.
- Published
- 8/5/2026
- Last modified
- 11/26/2026
- CVE assigner
- redhat
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
Red Hat build of Keycloak 26.4 Red Hat | Range not specified — verify advisory | Verify advisory Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability. | Source |
Red Hat build of Keycloak 26.4.14 Red Hat | Range not specified — verify advisory | Verify advisory Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability. | Source |
Red Hat build of Keycloak 26.6 Red Hat | Range not specified — verify advisory | Verify advisory Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability. | Source |
Red Hat build of Keycloak 26.6.5 Red Hat | Range not specified — verify advisory | Verify advisory Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability. | Source |
org.keycloak:keycloak-services Vendor not specified | < 26.4.14 | Verify advisory Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability. | Source |
org.keycloak:keycloak-services Vendor not specified | < 26.6.5 | Verify advisory Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability. | Source |
org.keycloak:keycloak-services Vendor not specified | < 26.7.1 | Verify advisory Candidate from cve.now; verify the vendor advisory and platform conditions before confirming applicability. | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
8.8 · High CVSS 3.1
Scored by redhat
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Related weaknesses
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.