MEDIUM5.4
GHSA-895x-rfqp-jh5c
Keycloak does not invalidate offline sessions when the offline_access scope is removed
Quick fix
GHSA-895x-rfqp-jh5c — org.keycloak:keycloak-services: upgrade to the fixed version with the command below.
# pom.xml: bump <version>26.2.3</version> for org.keycloak:keycloak-servicesDetails
A flaw was found in Keycloak. An offline session continues to be valid when the offline_access scope is removed from the client. The refresh token is accepted and you can continue to request new tokens for the session. As it can lead to a situation where an administrator removes the scope, and assumes that offline sessions are no longer available, but they are.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.keycloak:keycloak-services
Introduced in:
0Fixed in: 26.2.3Fix
# pom.xml: bump <version>26.2.3</version> for org.keycloak:keycloak-servicesReferences
- https://nvd.nist.gov/vuln/detail/CVE-2025-12110[ADVISORY]
- https://github.com/keycloak/keycloak/pull/43790[WEB]
- https://github.com/keycloak/keycloak/commit/54e1c8af1e089ad33d32e0f2792610e4b8df421b[WEB]
- https://github.com/keycloak/keycloak/commit/c830a27928cac4294619af7d147bdff34d4a85e7[WEB]
- https://access.redhat.com/errata/RHSA-2025:21370[WEB]
- https://access.redhat.com/errata/RHSA-2025:21371[WEB]
- https://access.redhat.com/errata/RHSA-2025:22088[WEB]
- https://access.redhat.com/errata/RHSA-2025:22089[WEB]
- https://access.redhat.com/security/cve/CVE-2025-12110[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2406033[WEB]
- https://github.com/keycloak/keycloak[PACKAGE]