CVE-2026-9802
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA flaw was found in Keycloak. When revokeRefreshToken=true is enabled and persistent session storage is in use, a server restart can reset internal timing mechanisms. This allows a remote attacker, who has previously captured a user's refresh token, to replay that token even after it has been revoked. Successful exploitation grants the attacker unauthorized access to the victim's account, potentially leading to information disclosure or privilege escalation.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceKeycloak suffers from a refresh token replay vulnerability when revokeRefreshToken=true is enabled with persistent session storage. Server restart resets internal timing mechanisms used to track token revocation, allowing an attacker with a previously captured refresh token to replay it after revocation and gain unauthorized access.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE dataall versionsCVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Locate Keycloak configuration filesFind the keycloak.conf or standalone.xml/standalone-ha.xml configuration file in your Keycloak installation directory. Common paths include $KEYCLOAK_HOME/conf/keycloak.conf or $JBOSS_HOME/standalone/configuration/standalone.xml.Affected if The configuration file cannot be located or Keycloak is not installed.
-
Check if token revocation is enabledSearch the configuration file for the setting 'revokeRefreshToken=true'. This parameter controls whether refresh tokens are invalidated after use.Affected if revokeRefreshToken is set to true in the configuration.
-
Identify session storage configurationExamine the configuration for session storage settings. Look for persistent session storage indicators such as database (JDBC), infinispan cache with persistence, or distributed cache backends. Check for session datasources, cache container definitions with persistent cache stores, or database session tables.Affected if Persistent session storage (database-backed or distributed cache with persistence) is configured.
-
Verify token validity periodsCheck the configuration for refresh token lifespan settings. Look for 'accessTokenLifespan' or 'refreshTokenLifespan' configuration values in the realm settings or keycloak.conf.Affected if Long refresh token validity periods are configured (extended lifespan increases replay window).
-
Check for token rotation policiesReview realm settings or authentication flows for token rotation configuration. Look for whether rotating refresh tokens are enforced or if the same token can be reused.Affected if Token rotation is not strictly enforced or allows reuse of the same refresh token across sessions.
You are affected if revokeRefreshToken=true is enabled with persistent session storage, as this combination allows refresh token replay after server restart due to the timing mechanism reset vulnerability.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataUpgrade to a patched Keycloak version or alternatively reduce refresh token validity periods and implement stricter token rotation. Review session storage configuration for potential timing-related issues.
- Consultation3.0 h
- Implementation4.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,648.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-9802 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-9802 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data