{"cve":"CVE-2026-7504","nvd":{"published":"2026-05-19T12:16:19.553","modified":"2026-10-26T13:10:00.140","status":"Modified","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.\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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-601"],"references":["https://access.redhat.com/errata/RHSA-2026:19594","https://access.redhat.com/errata/RHSA-2026:19595","https://access.redhat.com/errata/RHSA-2026:19596","https://access.redhat.com/errata/RHSA-2026:19597","https://access.redhat.com/security/cve/CVE-2026-7504"],"products":["redhat:build_of_keycloak"],"source":"nvd","synced_at":"2026-10-26T13:39:24.642594360+00:00"},"epss":{"cve":"CVE-2026-7504","score":0.005,"percentile":0.42527,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-rp95-xpg9-c2cq","url":"https://osv.dev/vulnerability/GHSA-rp95-xpg9-c2cq","summary":"Keycloak: Open redirect when using wildcard valid redirect URIs in Keycloak","modified":"2026-08-26T01:11:25.873154151Z","packages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","ranges":["<26.6.2"],"fixed":["26.6.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}