Skip to content
Fencer Intel
high 8.1

CVE-2026-7504 json

Org.keycloak/keycloak-services: open redirect when using wildcard valid redirect uris in keycloak

published 5mo ago modified 16d ago also BIT-keycloak-2026-7504 , EUVD-2026-30890 , GHSA-rp95-xpg9-c2cq

cvss
8.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.6%
EPSS 0.6% chance of exploitation in 30 days, percentile 51%
public exploits
0
none known

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.

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.

Patch / fix

  • maven org.keycloak:keycloak-services 26.6.2
  • bitnami keycloak 26.4.12
  • Red Hat Red Hat build of Keycloak 26.2 26.2-21, 26.2.16-1
  • Red Hat Red Hat build of Keycloak 26.2.16 rhel9-operator
  • Red Hat Red Hat build of Keycloak 26.4 26.4-17, 26.4.12-1
  • Red Hat Red Hat build of Keycloak 26.4.12 rhel9-operator

Is CVE-2026-7504 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-7504 updated cvss 8.1

org.keycloak/keycloak-services: Open redirect when using wildcard valid redirect URIs in Keycloak

  • Red Hat build of Keycloak 26.2 rhbk/keycloak-rhel9 26.2-21, rhbk/keycloak-rhel9-operator 26.2-21, rhbk/keycloak-operator-bundle 26.2.16-1
    fixed: vendor fix RHSA-2026:19595
  • Red Hat build of Keycloak 26.2.16
    fixed: vendor fix RHSA-2026:19594
  • Red Hat build of Keycloak 26.4 rhbk/keycloak-rhel9 26.4-17, rhbk/keycloak-rhel9-operator 26.4-17, rhbk/keycloak-operator-bundle 26.4.12-1
    fixed: vendor fix RHSA-2026:19597
  • Red Hat build of Keycloak 26.4.12
    fixed: vendor fix RHSA-2026:19596

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
5mo ago

Exploit prediction

0.64% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-11).

CVSS scores

assigned by version score vector
CNA 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
CISA ADP 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
GitHub 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
OSV 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Affected packages

ecosystem package affected fixed in
maven org.keycloak:keycloak-services
<26.6.2
26.6.2
bitnami keycloak
>=26.4.0, <26.4.12
26.4.12

Affected products

  • Red Hat Red Hat build of Keycloak 26.2
  • Red Hat Red Hat build of Keycloak 26.2.16
  • Red Hat Red Hat build of Keycloak 26.4
  • Red Hat Red Hat build of Keycloak 26.4.12

Classification

Weakness
  • CWE-601 URL Redirection to Untrusted Site

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.