Keycloak does not invalidate offline sessions when the offline_access scope is removed
Moderate severity
GitHub Reviewed
Published
Oct 23, 2025
to the GitHub Advisory Database
•
Updated Oct 23, 2025
Description
Published by the National Vulnerability Database
Oct 23, 2025
Published to the GitHub Advisory Database
Oct 23, 2025
Reviewed
Oct 23, 2025
Last updated
Oct 23, 2025
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.
References