{"id":"CVE-2026-7504","aliases":["CVE-2026-7504","GHSA-rp95-xpg9-c2cq","BIT-KEYCLOAK-2026-7504"],"related":[],"kind":"vulnerability","state":"published","title":"Org.keycloak/keycloak-services: open redirect when using wildcard valid redirect uris in keycloak","summary":"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.\n\nThe 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nThe 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.","source":"cvelist"},{"lang":"es","text":"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.\n\nEl 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.","source":"nvd"}],"published":"2026-05-19T11:01:19.663Z","modified":"2026-11-26T14:55:27.447Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"rpm","introduced":"26.2.16-1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.2-21","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.2-21","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2.16","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4.12-1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4-17","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4-17","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4.12","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.2.16-1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.2-21","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.2-21","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"rhel9-operator","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2.16","package":"rhbk/keycloak","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4.12-1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4-17","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4-17","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"rhel9-operator","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4.12","package":"rhbk/keycloak","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"26.6.2"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"26.4","fixed":"26.4.12"}],"vendor":"redhat","product":"build_of_keycloak","cpe":"cpe:2.3:a:redhat:build_of_keycloak:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"26.4.0","status":"affected","fixed":"26.4.12"}],"ecosystem":"Bitnami","package":"keycloak","purl":"pkg:bitnami/keycloak","source":"bitnami"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:19594","tags":["advisory","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19595","tags":["advisory","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19596","tags":["advisory","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19597","tags":["advisory","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-7504","tags":["advisory","vdb-entry","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2464128","tags":["advisory","issue-tracking","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-7504.json","tags":["web","x-sadp-csaf-vex"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7504","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/keycloak/keycloak/pull/49130","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/commit/479620769073ac36b782dee65086ab35e8e5d14e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/releases/tag/26.6.2","tags":["web"],"sources":["ghsa"]}],"credits":["Red Hat would like to thank Duarte Antunes (Intapp) and João Mendes (Intapp) for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-19T12:22:24.698Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-7504","url":"https://www.cve.org/CVERecord?id=CVE-2026-7504","licence":"CVE Terms of Use","modified":"2026-11-26T14:55:27.447Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rp95-xpg9-c2cq","url":"https://github.com/advisories/GHSA-rp95-xpg9-c2cq","licence":"CC-BY-4.0","modified":"2026-08-26T01:11:25.873Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-7504","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7504","licence":"Public domain","modified":"2026-10-26T13:10:00.140Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-KEYCLOAK-2026-7504","url":"https://osv.dev/vulnerability/BIT-KEYCLOAK-2026-7504","licence":"Apache-2.0","modified":"2026-09-08T08:48:07.400Z"}],"updatedAt":"2026-11-26T15:07:21.310Z","epss":{"score":0.00637,"percentile":0.51876,"date":"2026-12-01T12:00:22.000Z"}}