Skip to main content

Keycloak CVE-2026-105302

| EUVDEUVD-2026-92257 MEDIUM
Information Exposure (CWE-200)
2026-10-05 secalert@redhat.com GHSA-3xph-hcf4-hx94
5.7
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain delegated client-admin role
  2. Delivery
    Configure session note mapper for federated token
  3. Exploit
    Victim authenticates to managed application
  4. Execution
    Upstream bearer token leaked into issued token
  5. Impact
    Replay token to access external platform data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires (1) an attacker holding a delegated/scoped client-administrator privilege able to configure protocol mappers on a client, (2) Keycloak deployed with federated external identity providers whose upstream access/bearer tokens are stored and exposable as user session notes, and (3) a victim user actually authenticating to the attacker-controlled managed application (UI:R) so a token containing the sensitive note is issued. The flaw is the User Session Note mapper's failure to validate that the requested session note is not a sensitive internal credential. Limiting factors: it is not remote-unauthenticated - it needs administrative rights over a client plus active victim interaction, and it only has impact where external-IdP token storage/federation is configured; default deployments without federated token storage are not exposed.

Impact

This is a genuine but moderate-priority issue, not a drop-everything emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N, base 5.7) correctly reflects a confidentiality-only flaw that is gated by two real barriers: the attacker must already hold a delegated client-administrator privilege (PR:L) and a victim user must interact by authenticating to the attacker-controlled managed application (UI:R). There is no integrity or availability impact. No EPSS score, CISA KEV listing, or public POC was provided in the input, so by the precision rules this is 'no public exploit identified at time of analysis' - there is no evidence of active exploitation or weaponization. The privileged-insider nature (a trusted-but-scoped delegated admin abusing mapper configuration) makes this a targeted/abuse-of-trust scenario rather than a mass-exploitable internet-facing bug, which is consistent with the sub-6 CVSS. One signal worth verifying: the real-world impact can exceed the C:H/S:U rating because the leaked upstream bearer tokens grant access to a SEPARATE external platform (the user's data on an external IdP), which is arguably a scope change (S:C) - the blast radius extends beyond Keycloak itself. Overall: a real, patch-worthy privilege-abuse/token-leak issue for anyone running Keycloak with federated external IdPs and delegated client administration, but lower operational urgency than a network-unauthenticated RCE.

Exploit ScenarioDerived

A delegated client administrator - trusted to manage one application but not fully trusted with the realm - configures a User Session Note protocol mapper on their client to request a session note that actually holds a federated access token from an external identity provider. When a targeted user logs in to that managed application, Keycloak mints a token containing the user's upstream bearer token, which the administrator then extracts and replays against the external platform to access the victim's data there. No public exploit code was identified in the provided data; exploitation requires the attacker to hold client-admin rights and a victim to authenticate (UI:R).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 05, 2026

Keycloak's User Session Note protocol mapper fails to screen session note keys for sensitive internal credentials, allowing an authenticated delegated client administrator to copy a victim's upstream federated access/bearer token into tokens issued to the application they manage (CVSS 3.1 5.7, AV:N/AC:L/PR:L/UI:R, C:H/I:N/A:N). Exploitation requires the attacker to hold scoped client-administration rights sufficient to configure protocol mappers, a realm federated with external identity providers that persist upstream tokens as user session notes, and the victim to actually authenticate to the attacker-controlled client, so impact is decisive only in federated-token deployments and default configurations without federated token storage are not exposed. Red Hat has published an advisory and Bugzilla record for the issue, but no public exploit code and no confirmed active exploitation were identified in the available intelligence at time of analysis.

RemediationAI

No vendor-released patch was identified in the supplied data at time of analysis, so treat this as a configuration-hardening problem while tracking the Red Hat advisory (https://access.redhat.com/security/cve/CVE-2026-105302) and Bugzilla 2545800 for a fixed Keycloak build and apply it as soon as it is published. The most direct compensating control is to disable the store-tokens option on every external identity provider: this stops upstream access and refresh tokens from being written into user session notes so there is nothing sensitive for the mapper to copy, at the cost of breaking applications and flows that rely on retrieving or exchanging the upstream IdP token. In parallel, audit every client for User Session Note protocol mappers and remove any whose note key references federated or identity-provider token state, then constrain who can create mappers by removing or narrowing the realm-management manage-clients and manage-identity-providers roles from delegated administrators, accepting the operational overhead of a more centralised admin model and an approval step for mapper changes. Since a leaked bearer token is valid at the external provider until it expires or is revoked, treat any exposure as a credential compromise: revoke the affected user's upstream sessions/tokens at the identity provider, shorten upstream token lifetimes, and review IdP audit logs for anomalous API access on behalf of the victim.

Affected ProductsAI

The affected component is the Keycloak identity and access management server, specifically its User Session Note protocol mapper used in realms where clients are managed by delegated client administrators and where federated external identity providers persist upstream bearer tokens into session notes; this covers upstream Keycloak releases as well as Red Hat's supported Keycloak/RH-SSO distribution channel for which the advisory was filed. The supplied intelligence does not enumerate exact affected version ranges or CPE identifiers, so version mapping must be taken from the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-105302 and the associated Bugzilla entry https://bugzilla.redhat.com/show_bug.cgi?id=2545800. Deployments that do not federate external identity providers, or that never store upstream tokens in the session, are effectively out of scope for the credential-leak path even though the mapper code is present.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Keycloak issues OIDC and SAML tokens whose claims are populated by configurable protocol mappers attached to clients, and one mapper type, User Session Note, copies an arbitrary named value out of the authentication/user session's note map into the token being minted. When Keycloak is federated with an external identity provider and the store-tokens option is enabled, the upstream access, refresh, and ID tokens returned by that IdP are retained in the session notes so they can later be retrieved (for example via token exchange or the retrieve-token endpoint). The flaw is that the User Session Note mapper does not validate or blocklist the requested note name, so a mapper configured with the internal key that holds a federated token will happily emit that credential as a normal claim. This is an information-disclosure defect in the CWE-200 class: the mapper violates the trust boundary between Keycloak's internal session state and the token surface exposed to a client administrator, turning a configuration privilege into a credential-read primitive. The CVSS vector confirms the network-reachable, high-confidentiality, no-integrity/no-availability profile, with PR:L reflecting the delegated administrative privilege and UI:R reflecting the need for a victim to complete a login against the attacker-controlled client.

Know when Keycloak gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (redhat) PRIMARY 5.7 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
vuln.today AI 5.7 MEDIUM

Requires delegated client-admin rights (PR:L) and victim authentication (UI:R) over the network (AV:N); confidentiality-only (C:H, I/A:N), though S:C is arguable since leaked tokens reach an external platform.

3.1 AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 5.7 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

A flaw was found in the User Session Note mapper of the Keycloak identity and access management solution. The issue occurs because the mapper does not validate whether a requested session note contains sensitive internal credentials, such as federated access tokens from external identity providers. This allows a delegated client administrator to leak a user's upstream bearer tokens into the tokens issued to their managed application, potentially leading to unauthorized access to the user's data on external platforms.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
widely-deployed open-source enterprise IAM/SSO platform (Red Hat build included)
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2014-3709 HIGH POC
8.8 Oct 18

The org.keycloak.services.resources.SocialResource.callback method in JBoss KeyCloak before 1.0.3.Final allows remote at

CVE-2023-6563 HIGH POC
7.7 Dec 14

An unconstrained memory consumption vulnerability was discovered in Keycloak. Rated high severity (CVSS 7.7), this vulne

CVE-2022-1466 MEDIUM POC
6.5 Apr 26

Due to improper authorization, Red Hat Single Sign-On is vulnerable to users performing actions that they should not be

CVE-2017-7474 CRITICAL
9.8 May 12

It was found that the Keycloak Node.js adapter 2.5 - 3.0 did not handle invalid tokens correctly. Rated critical severit

CVE-2026-76187 CRITICAL
9.8 Sep 15

Authentication bypass in the Apache Airflow Keycloak auth manager provider (apache-airflow-providers-keycloak below 0.10

CVE-2022-1245 CRITICAL
9.8 Jul 08

A privilege escalation flaw was found in the token exchange feature of keycloak. Rated critical severity (CVSS 9.8), thi

CVE-2019-14910 CRITICAL
9.8 Dec 05

A vulnerability was found in keycloak 7.x, when keycloak is configured with LDAP user federation and StartTLS is used in

CVE-2021-20195 CRITICAL
9.6 May 28

A flaw was found in keycloak in versions before 13.0.0. Rated critical severity (CVSS 9.6), this vulnerability is remote

CVE-2023-6134 MEDIUM POC
5.4 Dec 14

A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is appended to t

CVE-2022-0225 MEDIUM POC
5.4 Aug 26

A flaw was found in Keycloak. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack c

CVE-2020-10770 MEDIUM POC
5.3 Dec 15

A flaw was found in Keycloak before 13.0.0, where it is possible to force the server to call out an unverified URL using

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy