CVE-2026-3872
Keycloak: keycloak: information disclosure due to redirect_uri validation bypass
A flaw was found in Keycloak. This issue allows an attacker, who controls another path on the same web server, to bypass the allowed path in redirect Uniform Resource Identifiers (URIs) that use a wildcard. A successful attack may lead to the theft of an access token, resulting in information disclosure.
Fixes and workarounds
Workaround
To mitigate this vulnerability, avoid using wildcards in `redirect_uri` configurations within Keycloak. Restricting `redirect_uri` to explicit, fully qualified URIs prevents the bypass of validation logic. This configuration change may require a service restart or reload to take effect.
Source: CNA: redhatFix
RHSA-2026:6476: Red Hat build of Keycloak 26.2 RHSA-2026:6478: Red Hat build of Keycloak 26.4 RHSA-2026:6475: Red Hat build of Keycloak 26.2.15 RHSA-2026:6477: Red Hat build of Keycloak 26.4.11
Source: ADP: redhat-SADPWorkaround
To mitigate this vulnerability, avoid using wildcards in `redirect_uri` configurations within Keycloak. Restricting `redirect_uri` to explicit, fully qualified URIs prevents the bypass of validation logic. This configuration change may require a service restart or reload to take effect.
Source: ADP: redhat-SADPAffected products and versions
| Product | Versions | Authority |
|---|---|---|
keycloak
https://github.com/keycloak/keycloak |
≥ 0; < 26.2.15 (affected, semver) ≥ 26.3.0; ≤ 26.3.5 (affected, semver) ≥ 26.4.0; < 26.4.11 (affected, semver) ≥ 26.5.0; < 26.5.7 (affected, semver) Other versions: unaffected |
CNA: redhat |
| Red Hat build of Keycloak 26.2 Red Hat rhbk/keycloak-operator-bundle
https://catalog.redhat.com/software/containers/ |
≥ 26.2.15-1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat build of Keycloak 26.2 Red Hat rhbk/keycloak-rhel9
https://catalog.redhat.com/software/containers/ |
≥ 26.2-18; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat build of Keycloak 26.2 Red Hat rhbk/keycloak-rhel9-operator
https://catalog.redhat.com/software/containers/ |
≥ 26.2-18; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat build of Keycloak 26.2.15 Red Hat rhbk/keycloak-rhel9
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat build of Keycloak 26.4 Red Hat rhbk/keycloak-operator-bundle
https://catalog.redhat.com/software/containers/ |
≥ 26.4.11-1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat build of Keycloak 26.4 Red Hat rhbk/keycloak-rhel9
https://catalog.redhat.com/software/containers/ |
≥ 26.4-14; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat build of Keycloak 26.4 Red Hat rhbk/keycloak-rhel9-operator
https://catalog.redhat.com/software/containers/ |
≥ 26.4-14; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat build of Keycloak 26.4.11 Red Hat rhbk/keycloak-rhel9
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat build of Keycloak 26.2 Red Hat rhbk/keycloak-operator-bundle
https://catalog.redhat.com/software/containers/ |
≥ 26.2.15-1; < * (unaffected, rpm)
Other versions: affected |
ADP: redhat-SADP |
| Red Hat build of Keycloak 26.2 Red Hat rhbk/keycloak-rhel9
https://catalog.redhat.com/software/containers/ |
≥ 26.2-18; < * (unaffected, rpm)
Other versions: affected |
ADP: redhat-SADP |
| Red Hat build of Keycloak 26.2 Red Hat rhbk/keycloak-rhel9-operator
https://catalog.redhat.com/software/containers/ |
≥ 26.2-18; < * (unaffected, rpm)
Other versions: affected |
ADP: redhat-SADP |
| Red Hat build of Keycloak 26.2.15 Red Hat rhbk/keycloak-rhel9
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
ADP: redhat-SADP |
| Red Hat build of Keycloak 26.4 Red Hat rhbk/keycloak-operator-bundle
https://catalog.redhat.com/software/containers/ |
≥ 26.4.11-1; < * (unaffected, rpm)
Other versions: affected |
ADP: redhat-SADP |
| Red Hat build of Keycloak 26.4 Red Hat rhbk/keycloak-rhel9
https://catalog.redhat.com/software/containers/ |
≥ 26.4-14; < * (unaffected, rpm)
Other versions: affected |
ADP: redhat-SADP |
| Red Hat build of Keycloak 26.4 Red Hat rhbk/keycloak-rhel9-operator
https://catalog.redhat.com/software/containers/ |
≥ 26.4-14; < * (unaffected, rpm)
Other versions: affected |
ADP: redhat-SADP |
| Red Hat build of Keycloak 26.4.11 Red Hat rhbk/keycloak-rhel9
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
ADP: redhat-SADP |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 7.3 high |
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N | CNA: redhat |
| 3.1 / 7.3 high |
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N | ADP: redhat-SADP |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://access.redhat.com/errata/RHSA-2026:6475CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:6476CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:6477CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:6478CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-3872CNA: redhat · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2445988CNA: redhat · issue-tracking, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-3872ADP: redhat-SADP · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2445988ADP: redhat-SADP · issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-3872.jsonADP: redhat-SADP · x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:6476ADP: redhat-SADP · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:6478ADP: redhat-SADP · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:6475ADP: redhat-SADP · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:6477ADP: redhat-SADP · vendor-advisory, x_refsource_REDHAT
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.