Public vulnerability disclosure

CVE-2026-3872

Keycloak: keycloak: information disclosure due to redirect_uri validation bypass

publishedCWE-601

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.

Technical severity7.3 highCVSS 3.1 · CNA: redhat
Published2026-04-02Source updated 2026-11-26
Collected2026-11-262 attributed sources

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: redhat

Fix

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-SADP

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: ADP: redhat-SADP

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority


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

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 7.3
high
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:NCNA: redhat
3.1 / 7.3
high
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:NADP: redhat-SADP

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

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/cves
https://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.

Agent access JSON · OpenAPI · CVE API guide