Cross-Site Scripting (XSS) in Keycloak
Summary
Cross-site scripting in Keycloak (CVE-2023-6717). Confidential information can be exposed externally.
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2023-6717 has been found in Keycloak.
Confidential information can be exposed externally. CVSS score: 6.0/10.
What to do: apply the vendor's official patched release.
If unsure, ask your IT team or search "Keycloak CVE-2023-6717" on the vendor's site.
CVE-2023-6717 (Keycloak) — CWE-79 / CVSS v3 6.0
Attack vector: remote (network-reachable)
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Cross-site scripting (XSS) (CWE-79) exists in Keycloak.
Check the vendor advisory for the affected versions of Keycloak.
Severity: Medium (CVSS 6.0/10). Confidential information can be exposed externally.
Update to the patched release per vendor advisory.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'Keycloak' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'Keycloak' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
Keycloakを grep し、稼働しているサービス・バージョンを把握する。 -
2
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| GitHubkeycloak |
< 22.0.10→ 22.0.10 ≥ 24.0.0, < 24.0.3→ 24.0.3 |
22.0.10 24.0.3 |
| Red HatRed Hat AMQ Broker 7 | — | Not listed |
| Red HatRed Hat build of Keycloak 22 | — | Not listed |
| Red HatRed Hat build of Keycloak 22.0.10 | — | Not listed |
| Red HatRHOSS-1.33-RHEL-8 | — | Not listed |
| Red HatRHPAM 7.13.5 async | — | Not listed |
| Red HatMigration Toolkit for Applications 6 | — | Not listed |
| Red HatMigration Toolkit for Applications 7 | — | Not listed |
| Red HatRed Hat build of Apicurio Registry 2 | — | Not listed |
| Red HatRed Hat build of Quarkus | — | Not listed |
| Red HatRed Hat Data Grid 8 | — | Not listed |
| Red HatRed Hat Decision Manager 7 | — | Not listed |
| Red HatRed Hat Developer Hub 1 | — | Not listed |
| Red HatRed Hat Fuse 7 | — | Not listed |
| Red HatRed Hat JBoss Data Grid 7 | — | Not listed |
| Red HatRed Hat JBoss Enterprise Application Platform 6 | — | Not listed |
| Red HatRed Hat JBoss Enterprise Application Platform 7 | — | Not listed |
| Red HatRed Hat JBoss Enterprise Application Platform 8 | — | Not listed |
| Red HatRed Hat JBoss Enterprise Application Platform Expansion Pack | — | Not listed |
| Red HatRed Hat OpenShift GitOps | — | Not listed |
| Red HatRed Hat Process Automation 7 | — | Not listed |
| Red HatRed Hat Single Sign-On 7 | — | Not listed |
Original description The description as published by the source.
A flaw was found in the SAML client registration in Keycloak that could allow an administrator to register malicious JavaScript URIs as Assertion Consumer Service POST Binding URLs (ACS), posing a Cross-Site Scripting (XSS) risk. This issue may allow a malicious admin in one realm or a client with registration access to target users in different realms or applications, executing arbitrary JavaScript in their contexts upon form submission. This can enable unauthorized access and harmful actions, compromising the confidentiality, integrity, and availability of the complete KC instance.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory access.redhat.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- report bugzilla.redhat.com
- web access.redhat.com
- web access.redhat.com
- web catalog.redhat.com