CVE-2026-18217
Received Received - Intake

SAML HTTP-Redirect Binding Spoofing in Keycloak

Vulnerability report for CVE-2026-18217, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-31

Last updated on: 2026-07-31

Assigner: Red Hat, Inc.

Description

A flaw was found in the SAML protocol implementation of Keycloak, an open-source identity and access management solution. The issue occurs when Keycloak handles SAML authentication requests using the HTTP-Redirect binding. If a client is configured with a wildcard redirect URL, an attacker can craft a request that includes malicious parameters. When a user authenticates, Keycloak appends its legitimate response to the attacker's parameters. This can cause some service providers to process the attacker's data instead of the real login information, potentially leading to a user being logged into the wrong account.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-31
Last Modified
2026-07-31
Generated
2026-07-31
AI Q&A
2026-07-31
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
keycloak keycloak *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-20 The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in Keycloak's SAML protocol implementation when using HTTP-Redirect binding. If a client uses a wildcard redirect URL, an attacker can add malicious parameters to a SAML request. During authentication, Keycloak appends its legitimate response to these attacker-controlled parameters, causing some service providers to process the attacker's data instead of the real login information. This may lead to users being logged into incorrect accounts.

Detection Guidance

To detect this vulnerability, inspect Keycloak logs for SAML HTTP-Redirect binding requests with duplicate query parameters like SAMLResponse or RelayState. Check if clients use wildcard redirect URLs and if service providers parse only the first parameter occurrence. Monitor for unexpected session swaps or login CSRF attempts during authentication flows.

Impact Analysis

This vulnerability could allow an attacker to redirect users to unintended accounts during SAML authentication. If exploited, a user might unknowingly log into an attacker-controlled account or service provider, potentially leading to unauthorized access to sensitive data or actions performed on behalf of the wrong user.

Compliance Impact

This vulnerability could potentially violate compliance with GDPR and HIPAA by enabling session swapping or login CSRF attacks. If an attacker forces a user into an attacker-controlled session, it may lead to unauthorized access to sensitive data, violating data protection requirements under GDPR and HIPAA.

Mitigation Strategies

Disable wildcard redirect URLs in Keycloak SAML client configurations. Review and restrict redirect URIs to specific trusted endpoints only.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-18217. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart