Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:maven/org.keycloak/keycloak-core@21.0.2
purl pkg:maven/org.keycloak/keycloak-core@21.0.2
Next non-vulnerable version 26.1.3
Latest non-vulnerable version 26.1.3
Risk 4.0
Vulnerabilities affecting this package (10)
Vulnerability Summary Fixed by
VCID-49qw-j7rn-qfdf
Aliases:
GHSA-57rh-gr4v-j5f6
Duplicate Advisory: Keycloak Uses a Key Past its Expiration Date # Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-xmmm-jw76-q7vg. This link is maintained to preserve external references. # Original Description A vulnerability was found in Keycloak. Expired OTP codes are still usable when using FreeOTP when the OTP token period is set to 30 seconds (default). Instead of expiring and deemed unusable around 30 seconds in, the tokens are valid for an additional 30 seconds totaling 1 minute. A one time passcode that is valid longer than its expiration time increases the attack window for malicious actors to abuse the system and compromise accounts. Additionally, it increases the attack surface because at any given time, two OTPs are valid.
24.0.7
Affected by 0 other vulnerabilities.
25.0.0
Affected by 3 other vulnerabilities.
VCID-7xuf-btg3-ckf6
Aliases:
CVE-2023-6841
GHSA-w97f-w3hq-36g2
Keycloak Denial of Service vulnerability A denial of service vulnerability was found in keycloak where the amount of attributes per object is not limited, an attacker by sending repeated HTTP requests could cause a resource exhaustion when the application send back rows with long attribute values. The issue is fixed in Keycloak 24 with the introduction of the User Profile feature.
24.0.0
Affected by 5 other vulnerabilities.
VCID-e85z-cn66-fye8
Aliases:
CVE-2024-7260
GHSA-g4gc-rh26-m3p5
Keycloak Open Redirect vulnerability An open redirect vulnerability was found in Keycloak. A specially crafted URL can be constructed where the `referrer` and `referrer_uri` parameters are made to trick a user to visit a malicious webpage. A trusted URL can trick users and automation into believing that the URL is safe, when, in fact, it redirects to a malicious server. This issue can result in a victim inadvertently trusting the destination of the redirect, potentially leading to a successful phishing attack or other types of attacks. Once a crafted URL is made, it can be sent to a Keycloak admin via email for example. This will trigger this vulnerability when the user visits the page and clicks the link. A malicious actor can use this to target users they know are Keycloak admins for further attacks. It may also be possible to bypass other domain-related security checks, such as supplying this as a OAuth redirect uri. The malicious actor can further obfuscate the `redirect_uri` using URL encoding, to hide the text of the actual malicious website domain.
24.0.7
Affected by 0 other vulnerabilities.
25.0.0
Affected by 3 other vulnerabilities.
VCID-eaaa-ejr9-6ygx
Aliases:
CVE-2024-7318
GHSA-xmmm-jw76-q7vg
Keycloaks's One Time Passcode (OTP) is valid longer than expiration timeSeverity A vulnerability was found in Keycloak. Expired OTP codes are still usable when using FreeOTP when the OTP token period is set to 30 seconds (default). Instead of expiring and deemed unusable around 30 seconds in, the tokens are valid for an additional 30 seconds totaling 1 minute. A one time passcode that is valid longer than its expiration time increases the attack window for malicious actors to abuse the system and compromise accounts. Additionally, it increases the attack surface because at any given time, two OTPs are valid.
24.0.7
Affected by 0 other vulnerabilities.
25.0.4
Affected by 2 other vulnerabilities.
VCID-engr-q4ge-53dc
Aliases:
CVE-2023-6134
GHSA-cvg2-7c3j-g36j
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is appended to the token. This issue could allow an attacker to submit a specially crafted request leading to cross-site scripting (XSS) or further attacks. This flaw is the result of an incomplete fix for CVE-2020-10748.
23.0.0
Affected by 7 other vulnerabilities.
VCID-epys-8p8v-zugv
Aliases:
CVE-2023-6927
GHSA-3p75-q5cc-qmj7
GHSA-9vm7-v8wj-3fqw
GMS-2024-51
keycloak-core: open redirect via "form_post.jwt" JARM response mode An incomplete fix was found in Keycloak Core patch. An attacker can steal authorization codes or tokens from clients using a wildcard in the JARM response mode "form_post.jwt". It is observed that changing the response_mode parameter in the original proof of concept from "form_post" to "form_post.jwt" can bypass the security patch implemented to address CVE-2023-6134.
23.0.4
Affected by 6 other vulnerabilities.
VCID-heqp-u355-wyaz
Aliases:
CVE-2024-10039
GHSA-93ww-43rr-79v3
Keycloak mTLS Authentication Bypass via Reverse Proxy TLS Termination A vulnerability was found in Keycloak. Deployments of Keycloak with a reverse proxy not using pass-through termination of TLS, with mTLS enabled, are affected. This issue may allow an attacker on the local network to authenticate as any user or client that leverages mTLS as the authentication mechanism.
26.0.6
Affected by 1 other vulnerability.
VCID-kp25-fan9-jkd2
Aliases:
CVE-2024-4028
GHSA-q4xq-445g-g6ch
Keycloak allows cross-site scripting (XSS) A vulnerability was found in Keycloak. This issue may allow a privileged attacker to use a malicious payload as the permission while creating items (Resource and Permissions) from the admin console, leading to a stored cross-site scripting (XSS) attack.
26.1.3
Affected by 0 other vulnerabilities.
VCID-nhe2-8dtq-gqbf
Aliases:
CVE-2023-6291
GHSA-mpwq-j3xf-7m5w
URL Redirection to Untrusted Site ('Open Redirect') A flaw was found in the redirect_uri validation logic in Keycloak. This issue may allow a bypass of otherwise explicitly allowed hosts. A successful attack may lead to an access token being stolen, making it possible for the attacker to impersonate other users.
23.0.0
Affected by 7 other vulnerabilities.
VCID-yaxc-7za7-zbbe
Aliases:
CVE-2023-1664
GHSA-5cc8-pgp5-7mpm
GHSA-c892-cwq6-qrqf
Keycloak vulnerable to untrusted certificate validation A flaw was found in Keycloak. This flaw depends on a non-default configuration "Revalidate Client Certificate" to be enabled and the reverse proxy is not validating the certificate before Keycloak. Using this method an attacker may choose the certificate which will be validated by the server. If this happens and the KC_SPI_TRUSTSTORE_FILE_FILE variable is missing/misconfigured, any trustfile may be accepted with the logging information of "Cannot validate client certificate trust: Truststore not available". This may not impact availability as the attacker would have no access to the server, but consumer applications Integrity or Confidentiality may be impacted considering a possible access to them. Considering the environment is correctly set to use "Revalidate Client Certificate" this flaw is avoidable.
21.1.2
Affected by 9 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-29T22:02:36.377077+00:00 GitLab Importer Affected by VCID-kp25-fan9-jkd2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-4028.yml 38.5.0
2026-04-29T21:56:56.290865+00:00 GitLab Importer Affected by VCID-heqp-u355-wyaz https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-10039.yml 38.5.0
2026-04-29T21:52:57.669550+00:00 GitLab Importer Affected by VCID-eaaa-ejr9-6ygx https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-7318.yml 38.5.0
2026-04-29T21:48:56.495597+00:00 GitLab Importer Affected by VCID-7xuf-btg3-ckf6 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-6841.yml 38.5.0
2026-04-29T21:48:47.629928+00:00 GitLab Importer Affected by VCID-e85z-cn66-fye8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-7260.yml 38.5.0
2026-04-29T21:48:46.398810+00:00 GitLab Importer Affected by VCID-49qw-j7rn-qfdf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/GHSA-57rh-gr4v-j5f6.yml 38.5.0
2026-04-29T21:29:36.049555+00:00 GitLab Importer Affected by VCID-nhe2-8dtq-gqbf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-6291.yml 38.5.0
2026-04-29T21:29:26.878538+00:00 GitLab Importer Affected by VCID-epys-8p8v-zugv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/GMS-2024-51.yml 38.5.0
2026-04-29T21:26:35.971790+00:00 GitLab Importer Affected by VCID-engr-q4ge-53dc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-6134.yml 38.5.0
2026-04-29T21:10:51.619338+00:00 GitLab Importer Affected by VCID-yaxc-7za7-zbbe https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-1664.yml 38.5.0
2026-04-16T23:21:13.696786+00:00 GitLab Importer Affected by VCID-kp25-fan9-jkd2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-4028.yml 38.4.0
2026-04-16T23:15:38.720466+00:00 GitLab Importer Affected by VCID-heqp-u355-wyaz https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-10039.yml 38.4.0
2026-04-16T23:11:42.290958+00:00 GitLab Importer Affected by VCID-eaaa-ejr9-6ygx https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-7318.yml 38.4.0
2026-04-16T23:07:47.991576+00:00 GitLab Importer Affected by VCID-7xuf-btg3-ckf6 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-6841.yml 38.4.0
2026-04-16T23:07:39.635667+00:00 GitLab Importer Affected by VCID-e85z-cn66-fye8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-7260.yml 38.4.0
2026-04-16T23:07:38.426973+00:00 GitLab Importer Affected by VCID-49qw-j7rn-qfdf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/GHSA-57rh-gr4v-j5f6.yml 38.4.0
2026-04-16T22:48:47.629308+00:00 GitLab Importer Affected by VCID-nhe2-8dtq-gqbf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-6291.yml 38.4.0
2026-04-16T22:48:39.141938+00:00 GitLab Importer Affected by VCID-epys-8p8v-zugv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/GMS-2024-51.yml 38.4.0
2026-04-16T22:45:44.656377+00:00 GitLab Importer Affected by VCID-engr-q4ge-53dc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-6134.yml 38.4.0
2026-04-16T22:29:58.379660+00:00 GitLab Importer Affected by VCID-yaxc-7za7-zbbe https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-1664.yml 38.4.0
2026-04-12T00:40:15.608812+00:00 GitLab Importer Affected by VCID-kp25-fan9-jkd2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-4028.yml 38.3.0
2026-04-12T00:34:17.659377+00:00 GitLab Importer Affected by VCID-heqp-u355-wyaz https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-10039.yml 38.3.0
2026-04-12T00:30:07.031482+00:00 GitLab Importer Affected by VCID-eaaa-ejr9-6ygx https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-7318.yml 38.3.0
2026-04-12T00:25:56.093778+00:00 GitLab Importer Affected by VCID-7xuf-btg3-ckf6 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-6841.yml 38.3.0
2026-04-12T00:25:47.330165+00:00 GitLab Importer Affected by VCID-e85z-cn66-fye8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-7260.yml 38.3.0
2026-04-12T00:25:46.006908+00:00 GitLab Importer Affected by VCID-49qw-j7rn-qfdf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/GHSA-57rh-gr4v-j5f6.yml 38.3.0
2026-04-12T00:08:38.542575+00:00 GitLab Importer Affected by VCID-nhe2-8dtq-gqbf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-6291.yml 38.3.0
2026-04-12T00:08:29.133190+00:00 GitLab Importer Affected by VCID-epys-8p8v-zugv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/GMS-2024-51.yml 38.3.0
2026-04-12T00:05:24.906230+00:00 GitLab Importer Affected by VCID-engr-q4ge-53dc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-6134.yml 38.3.0
2026-04-11T23:48:35.615929+00:00 GitLab Importer Affected by VCID-yaxc-7za7-zbbe https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-1664.yml 38.3.0
2026-04-03T00:48:11.198885+00:00 GitLab Importer Affected by VCID-kp25-fan9-jkd2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-4028.yml 38.1.0
2026-04-03T00:42:01.662282+00:00 GitLab Importer Affected by VCID-heqp-u355-wyaz https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-10039.yml 38.1.0
2026-04-03T00:37:46.882251+00:00 GitLab Importer Affected by VCID-eaaa-ejr9-6ygx https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-7318.yml 38.1.0
2026-04-03T00:33:35.019150+00:00 GitLab Importer Affected by VCID-7xuf-btg3-ckf6 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-6841.yml 38.1.0
2026-04-03T00:33:25.703487+00:00 GitLab Importer Affected by VCID-e85z-cn66-fye8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2024-7260.yml 38.1.0
2026-04-03T00:33:24.405797+00:00 GitLab Importer Affected by VCID-49qw-j7rn-qfdf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/GHSA-57rh-gr4v-j5f6.yml 38.1.0
2026-04-03T00:13:16.798815+00:00 GitLab Importer Affected by VCID-nhe2-8dtq-gqbf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-6291.yml 38.1.0
2026-04-03T00:13:07.867469+00:00 GitLab Importer Affected by VCID-epys-8p8v-zugv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/GMS-2024-51.yml 38.1.0
2026-04-03T00:10:03.763914+00:00 GitLab Importer Affected by VCID-engr-q4ge-53dc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-6134.yml 38.1.0
2026-04-02T23:51:57.475160+00:00 GitLab Importer Affected by VCID-yaxc-7za7-zbbe https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.keycloak/keycloak-core/CVE-2023-1664.yml 38.1.0