CVE-2026-7504
Org.keycloak/keycloak-services: open redirect when using wildcard valid redirect uris in keycloak
Description
A flaw was found in Keycloak's URL validation logic during redirect operations. By crafting a malicious request, an attacker could bypass validation to redirect users to unauthorized URLs, potentially leading to the exposure of sensitive information within the domain or facilitating further attacks. This vulnerability specifically affects Keycloak clients configured with a wildcard (*) in the "Valid Redirect URIs" field and requires user interaction to be successfully exploited. The issue stems from a discrepancy in how Keycloak and the underlying Java URI implementation handle the user-info component of a URL. If a malicious redirect URL is constructed using multiple @ characters in the user-info section, Java's URI parser fails to extract the user-info, leaving only the raw authority field. Consequently, Keycloak's validation check fails to detect the malformed user-info, falls back to a wildcard comparison, and incorrectly permits the malicious redirect.
INFO
Published Date :
May 19, 2026, 12:16 p.m.
Last Modified :
Oct. 26, 2026, 1:10 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
Affected Products
The following products are affected by CVE-2026-7504
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | 53f830b8-0a3f-465b-8143-3b8a9948e749 | ||||
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 3.1 | HIGH | MITRE-CVE | ||||
| CVSS 3.1 | HIGH | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c |
Solution
- Update Keycloak to a patched version.
- Remove wildcard (*) from redirect URIs.
- Validate redirect URIs rigorously.
- Avoid using multiple @ in redirect URIs.
Public PoC/Exploit Available at Github
CVE-2026-7504 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-7504.
| URL | Resource |
|---|---|
| https://access.redhat.com/errata/RHSA-2026:19594 | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2026:19595 | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2026:19596 | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2026:19597 | Vendor Advisory |
| https://access.redhat.com/security/cve/CVE-2026-7504 | Vendor Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2464128 | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2026:19594 | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2026:19595 | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2026:19596 | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2026:19597 | Vendor Advisory |
| https://access.redhat.com/security/cve/CVE-2026-7504 | Vendor Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2464128 | Vendor Advisory |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-7504.json |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-7504 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-7504
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Аудит безопасности ПО OpenTalk
Python
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-7504 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-7504 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 26, 2026
Action Type Old Value New Value Added Translation Title: Red Hat build of Keycloak 26.2, Red Hat build of Keycloak 26.2.16, Red Hat build of Keycloak 26.4 y Red Hat build of Keycloak 26.4.12 de Red Hat, Description: Se encontró una falla en la lógica de validación de URL de Keycloak durante las operaciones de redirección. Al elaborar una solicitud maliciosa, un atacante podría eludir la validación para redirigir a los usuarios a URL no autorizadas, lo que podría llevar a la exposición de información sensible dentro del dominio o facilitar ataques adicionales. Esta vulnerabilidad afecta específicamente a clientes de Keycloak configurados con un comodín (*) en el campo ’Valid Redirect URIs’ y requiere interacción del usuario para ser explotada con éxito. El problema se deriva de una discrepancia en cómo Keycloak y la implementación subyacente de URI de Java manejan el componente de información de usuario (user-info) de una URL. Si se construye una URL de redirección maliciosa utilizando múltiples caracteres @ en la sección de información de usuario (user-info), el analizador de URI de Java no logra extraer la información de usuario (user-info), dejando solo el campo de autoridad sin procesar. En consecuencia, la verificación de validación de Keycloak no logra detectar la información de usuario (user-info) malformada, recurre a una comparación con comodín y permite incorrectamente la redirección maliciosa. -
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Jul. 15, 2026
Action Type Old Value New Value Changed Affected [{'cpes': ['cpe:/a:redhat:build_keycloak:26.2::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.2', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.4', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.2::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.2.16', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.4.12', 'defaultStatus': 'affected'}] [{'cpes': ['cpe:/a:redhat:build_keycloak:26.2::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.2', 'versions': [{'status': 'unaffected', 'version': '26.2.16-1', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak-operator-bundle', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.2::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.2', 'versions': [{'status': 'unaffected', 'version': '26.2-21', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak-rhel9', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.2::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.2', 'versions': [{'status': 'unaffected', 'version': '26.2-21', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak-rhel9-operator', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.2::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.2.16', 'versions': [{'status': 'unaffected', 'version': 'rhel9-operator', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.4', 'versions': [{'status': 'unaffected', 'version': '26.4.12-1', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak-operator-bundle', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.4', 'versions': [{'status': 'unaffected', 'version': '26.4-17', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak-rhel9', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.4', 'versions': [{'status': 'unaffected', 'version': '26.4-17', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak-rhel9-operator', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.4.12', 'versions': [{'status': 'unaffected', 'version': 'rhel9-operator', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'affected'}] -
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Jun. 30, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:/a:redhat:build_keycloak:26.2::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.2', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.4', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.2::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.2.16', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.4.12', 'defaultStatus': 'affected'}] Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N Added CWE CWE-601 Added Reference https://access.redhat.com/errata/RHSA-2026:19594 Added Reference https://access.redhat.com/errata/RHSA-2026:19595 Added Reference https://access.redhat.com/errata/RHSA-2026:19596 Added Reference https://access.redhat.com/errata/RHSA-2026:19597 Added Reference https://access.redhat.com/security/cve/CVE-2026-7504 Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2464128 Added Reference https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-7504.json -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:/a:redhat:build_keycloak:26.2::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.2', 'versions': [{'status': 'unaffected', 'version': '26.2.16-1', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak-operator-bundle', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.2::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.2', 'versions': [{'status': 'unaffected', 'version': '26.2-21', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak-rhel9', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.2::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.2', 'versions': [{'status': 'unaffected', 'version': '26.2-21', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak-rhel9-operator', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.2::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.2.16', 'packageName': 'rhbk/keycloak-rhel9-operator', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.4', 'versions': [{'status': 'unaffected', 'version': '26.4.12-1', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak-operator-bundle', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.4', 'versions': [{'status': 'unaffected', 'version': '26.4-17', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak-rhel9', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.4', 'versions': [{'status': 'unaffected', 'version': '26.4-17', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhbk/keycloak-rhel9-operator', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:26.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Keycloak 26.4.12', 'packageName': 'rhbk/keycloak-rhel9-operator', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-7504', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-05-19T12:22:24.698680Z'} -
Initial Analysis by [email protected]
Jun. 03, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:redhat:build_of_keycloak:*:*:*:*:*:*:*:* versions from (including) 26.4 up to (excluding) 26.4.12 Added Reference Type Red Hat, Inc.: https://access.redhat.com/errata/RHSA-2026:19594 Types: Vendor Advisory Added Reference Type Red Hat, Inc.: https://access.redhat.com/errata/RHSA-2026:19595 Types: Vendor Advisory Added Reference Type Red Hat, Inc.: https://access.redhat.com/errata/RHSA-2026:19596 Types: Vendor Advisory Added Reference Type Red Hat, Inc.: https://access.redhat.com/errata/RHSA-2026:19597 Types: Vendor Advisory Added Reference Type Red Hat, Inc.: https://access.redhat.com/security/cve/CVE-2026-7504 Types: Vendor Advisory Added Reference Type Red Hat, Inc.: https://bugzilla.redhat.com/show_bug.cgi?id=2464128 Types: Vendor Advisory -
CVE Modified by [email protected]
May. 20, 2026
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHSA-2026:19595 Added Reference https://access.redhat.com/errata/RHSA-2026:19596 -
CVE Modified by [email protected]
May. 20, 2026
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHSA-2026:19594 Added Reference https://access.redhat.com/errata/RHSA-2026:19597 -
New CVE Received by [email protected]
May. 19, 2026
Action Type Old Value New Value Added Description A flaw was found in Keycloak's URL validation logic during redirect operations. By crafting a malicious request, an attacker could bypass validation to redirect users to unauthorized URLs, potentially leading to the exposure of sensitive information within the domain or facilitating further attacks. This vulnerability specifically affects Keycloak clients configured with a wildcard (*) in the "Valid Redirect URIs" field and requires user interaction to be successfully exploited. The issue stems from a discrepancy in how Keycloak and the underlying Java URI implementation handle the user-info component of a URL. If a malicious redirect URL is constructed using multiple @ characters in the user-info section, Java's URI parser fails to extract the user-info, leaving only the raw authority field. Consequently, Keycloak's validation check fails to detect the malformed user-info, falls back to a wildcard comparison, and incorrectly permits the malicious redirect. Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N Added CWE CWE-601 Added Reference https://access.redhat.com/security/cve/CVE-2026-7504 Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2464128