Keycloak Reflected XSS
It was found that Keycloak would accept a HOST header URL in the admin console and use it to determine web resource locations. An attacker could use this flaw against an authenticated user to attain reflected XSS via a malicious server.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.keycloak:keycloak-parent | < 3.4.0 | 3.4.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-12158
- https://access.redhat.com/errata/RHSA-2017:2904
- https://access.redhat.com/errata/RHSA-2017:2905
- https://access.redhat.com/errata/RHSA-2017:2906
- https://bugzilla.redhat.com/show_bug.cgi?id=1489161
- https://web.archive.org/web/20210124114020/http://www.securityfocus.com/bid/101618
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-79- Platform
- Java / Kotlin (Maven)
- Package
org.keycloak:keycloak-parent- Disclosed
- 13.05.2022
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - GHSA-v38p-mqq3-m6v5 - CC BY 4.0
Vulnerability history: org.keycloak:keycloak-parent
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 26
- First → latest
- 05.2021 02.2026
- Without a fix
- 6
- Exploited in attacks
- 0
Severity breakdown
- Critical 2
- High 12
- Medium 10
- Low 2
Disclosures per year
- 2021: 1
- 2022: 22
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 2
-
Keycloak Reflected XSS this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.