CVE-2023-6134: Red Hat build of Keycloak 22 · Cross-site Scripting
Affects Red Hat build of Keycloak 22Source CVE Database V5
Mentioned vulnerabilities
Not known to be exploited · CVSS 4.6 Medium.
Data as of 23 Nov 2026, 21:13 UTC
- EPSS
- 1.3% chance of exploitation in 30 days – higher than 71% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Dec 2023
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Red Hat Red Hat build of Keycloak 22 | Affected
| Fixed in– |
AI-suggested
European organizations should immediately monitor for updates and patches from Red Hat addressing CVE-2023-6134 and apply them promptly once available. In the interim, administrators should audit and restrict allowed redirect URIs to a strict whitelist, avoiding wildcards or ambiguous schemes that could be exploited. Implementing robust Content Security Policies (CSP) can help mitigate the impact of injected scripts by restricting script execution sources. Additionally, organizations should review and enhance input validation and sanitization mechanisms within their Keycloak deployments. Logging and monitoring for unusual redirect requests or suspicious user activity can aid in early detection of exploitation attempts. Educating users about the risks of clicking on unsolicited or suspicious links related to authentication flows can reduce the likelihood of successful attacks. Finally, consider deploying web application firewalls (WAF) with rules tailored to detect and block XSS payloads targeting Keycloak endpoints.
Description
A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is appended to the token. This issue could allow an attacker to submit a specially crafted request leading to cross-site scripting (XSS) or further attacks. This flaw is the result of an incomplete fix for CVE-2020-10748.
References
- access.redhat.com/errata/RHSA-2023:7854 (opens in a new tab)
- access.redhat.com/errata/RHSA-2023:7855 (opens in a new tab)
- access.redhat.com/errata/RHSA-2023:7856 (opens in a new tab)
- access.redhat.com/errata/RHSA-2023:7857 (opens in a new tab)
- access.redhat.com/errata/RHSA-2023:7858 (opens in a new tab)
- access.redhat.com/errata/RHSA-2023:7860 (opens in a new tab)
- access.redhat.com/errata/RHSA-2023:7861 (opens in a new tab)
- access.redhat.com/errata/RHSA-2024:0798 (opens in a new tab)
- access.redhat.com/errata/RHSA-2024:0799 (opens in a new tab)
- access.redhat.com/errata/RHSA-2024:0800 (opens in a new tab)
- access.redhat.com/errata/RHSA-2024:0801 (opens in a new tab)
- access.redhat.com/errata/RHSA-2024:0804 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2023-6134 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2249673 (opens in a new tab)