CVE-2026-37982: Keycloak: org.keycloak.authentication: keycloak: unauthorized account takeover via webauthn token replay

Published Apr 6, 2026
·
Updated

A flaw was found in Keycloak. This authentication vulnerability allows a remote attacker to replay ExecuteActionsActionToken tokens within Keycloak's WebAuthn (Web Authentication) flow. By intercepting an execute-actions email link, an attacker can register their own authenticator to a victim's account. This leads to unauthorized enrollment of a hardware-backed credential, enabling persistent account takeover.

Other sources

Authentication / credential-enrollment vulnerability in Keycloak’s handling of ExecuteActionsActionToken for WebAuthn flows. The flaw is caused by canUseTokenRepeatedly() treating tokens as reusable when required actions do not mark themselves as one-time, so tokens containing WEBAUTHNREGISTER or WEBAUTHNPASSWORDLESSREGISTER can be replayed within their validity window. When an attacker gains access to an execute-actions email link, they can complete WebAuthn registration with their own authenticator on the victim’s account before the victim uses it. This can be exploited remotely when WebAuthn required actions are enabled and the link is obtained via email interception, log leakage, or mailbox compromise. Successful exploitation results in unauthorized enrollment of a hardware-backed credential, enabling stealthy and persistent account takeover.

Red Hat

Affected Software

2 affected components
Keycloak Keycloak
redhat Build Of Keycloak>=26.4<26.4.12

Event History

Apr 6, 2026
Data Sourced
via Red Hat·08:00 AM
DescriptionSeverityAffected Software
May 19, 2026
CVE Published
via MITRE·10:52 AM
Data Sourced
via MITRE·10:52 AM
DescriptionSeverity
Data Sourced
via NVD·12:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-37982?

CVE-2026-37982 is classified as a medium severity vulnerability due to its potential for unauthorized account takeover.

2

How do I fix CVE-2026-37982?

To fix CVE-2026-37982, update your Keycloak installation to the latest patched version provided by Keycloak.

3

What impact does CVE-2026-37982 have on my Keycloak installation?

CVE-2026-37982 allows remote attackers to perform unauthorized account takeover via replaying authentication tokens.

4

Which versions of Keycloak are affected by CVE-2026-37982?

CVE-2026-37982 affects multiple versions of Keycloak that utilize the WebAuthn authentication flow.

5

Is CVE-2026-37982 a known issue with WebAuthn in Keycloak?

Yes, CVE-2026-37982 is a recognized flaw in the WebAuthn authentication flow within Keycloak.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203