CVE-2026-18209
Received Received - Intake

Keycloak OpenID Connect Redirect URL Fragment Security Bypass

Vulnerability report for CVE-2026-18209, 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 keycloak-services component of Keycloak, which handles OpenID Connect (OIDC) authentication flows. The issue occurs because the security check designed to prevent HTTP parameter pollution only inspects the query portion of a redirect URL and ignores the fragment portion. When a client is configured with a wildcard redirect URI, an attacker can use this to inject duplicate security parameters into the login response. If a client application is not configured correctly, it might trust the attacker's injected data instead of the real security information from Keycloak, leading to session fixation or account confusion.

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
redhat keycloak *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1288 The product receives a complex input with multiple elements or fields that must be consistent with each other, but it does not validate or incorrectly validates that the input is actually consistent.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in Keycloak's OpenID Connect (OIDC) authentication flows. The security check only checks the query part of a redirect URL and misses the fragment part. With a wildcard redirect URI, an attacker can inject duplicate security parameters into the login response. If a client app is misconfigured, it may trust the attacker's data instead of Keycloak's real security info, causing session fixation or account confusion.

Detection Guidance

To detect this vulnerability, inspect Keycloak server logs for unusual redirect_uri patterns containing forbidden parameters (code, state, iss) in the fragment portion. Check client configurations for wildcard redirect URIs. Use tools like curl to test redirect_uri handling with crafted URLs containing fragments.

Impact Analysis

An attacker could hijack your session or confuse your account by injecting malicious parameters during login. This might allow unauthorized access to your account or data if the client application is not properly secured against such attacks.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR and HIPAA by enabling session fixation or account confusion attacks. If an attacker exploits this flaw, they might gain unauthorized access to user sessions or manipulate authentication data, which could lead to violations of data protection and privacy requirements under these regulations.

Mitigation Strategies

Review and update client applications to ensure they validate security parameters from Keycloak correctly and do not trust injected data. Configure Keycloak clients to avoid wildcard redirect URIs and restrict redirect URIs to trusted domains only.

Chat Assistant

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

EPSS Chart