Partial String Comparison in Keycloak - CVE-2026-18211

 

Partial String Comparison in Keycloak - CVE-2026-18211

Published: November 19, 2026


Vulnerability identifier: #VU167851
CSH Severity: Medium
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-18211
CWE-ID: CWE-187
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to intercept an authorization code sent over unencrypted HTTP.

The vulnerability exists due to a partial comparison of redirect URIs in the secure-client-uris policy executor when validating whether an HTTP redirect qualifies for the localhost exception. A remote attacker can receive an authorization code at a non-loopback HTTP destination if a victim authenticates through a client with an affected redirect configuration.

The allow-http-on-localhost option must be enabled.


Affected software

Keycloak

How to mitigate CVE-2026-18211

Install security update from vendor's website.

Keycloak - update to 26.7.5

External References

Related Security Bulletins