# CVE-2026-7504: Org.keycloak/keycloak-services: open redirect when using wildcard valid redirect uris in keycloak

- Severity: High 8.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 51% of CVEs (2026-12-01)
- Published: 2026-05-19T11:01:19.663Z
- Modified: 2026-11-26T14:55:27.447Z
- Also known as: GHSA-rp95-xpg9-c2cq, BIT-KEYCLOAK-2026-7504
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- rhbk/keycloak-operator-bundle: no versions given (not affected: from 26.2.16-1 before *; from 26.4.12-1 before *)
- rhbk/keycloak-rhel9: no versions given (not affected: from 26.2-21 before *; from 26.4-17 before *)
- rhbk/keycloak-rhel9-operator: no versions given (not affected: from 26.2-21 before *; from 26.4-17 before *)
- rhbk/keycloak: no versions given (not affected: from rhel9-operator before *)
- org.keycloak:keycloak-services (Maven): before 26.6.2
- redhat build_of_keycloak: from 26.4 before 26.4.12
- keycloak (Bitnami): from 26.4.0 before 26.4.12

## Every score

- redhat: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- redhat-SADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://access.redhat.com/errata/RHSA-2026:19594> (advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:19595> (advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:19596> (advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:19597> (advisory, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-7504> (advisory, vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2464128> (advisory, issue-tracking, vendor-advisory, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-7504.json> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-7504> (advisory, web)
- <https://github.com/keycloak/keycloak/pull/49130> (web)
- <https://github.com/keycloak/keycloak/commit/479620769073ac36b782dee65086ab35e8e5d14e> (web)
- <https://github.com/keycloak/keycloak> (package)
- <https://github.com/keycloak/keycloak/releases/tag/26.6.2> (web)

## Sources

- CVE List: [CVE-2026-7504](https://www.cve.org/CVERecord?id=CVE-2026-7504), CVE Terms of Use, modified 2026-11-26
- GitHub Advisory Database: [GHSA-rp95-xpg9-c2cq](https://github.com/advisories/GHSA-rp95-xpg9-c2cq), CC-BY-4.0, modified 2026-08-26
- NVD: [CVE-2026-7504](https://nvd.nist.gov/vuln/detail/CVE-2026-7504), Public domain, modified 2026-10-26
- Bitnami Vulnerability Database: [BIT-KEYCLOAK-2026-7504](https://osv.dev/vulnerability/BIT-KEYCLOAK-2026-7504), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-7504 · Whole record: https://cve.day/CVE-2026-7504.json · Rebuilt by cve.day 2026-11-26T15:07:21.310Z
