CVE-2017-12158: It was found that Keycloak would accept a HOST header URL in the admin console and use it to determine web res
CVE-2017-12158 is a medium-severity flaw (CVSS 5.4) affecting single sign on, keycloak. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- On your watchlist
No fix is published yet: follow the downgrade or mitigation steps.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2017-12158?
single sign on: downgrade or apply the listed mitigation; keycloak: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2017-12158 being exploited?
CVE-2017-12158 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2017-12158 affect?
CVE-2017-12158 affects single sign on, keycloak. Severity is medium (CVSS 5.4). 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.
How urgent is CVE-2017-12158?
Priority 40/100. On your watchlist
Software pages
Related CVEs
- CVE-2017-2585 MEDIUM 5.9 UPGRADE DOWNGRADE Red Hat Keycloak before version 2.5.1 has an implementation of HMAC verification for JWS tokens that uses a me
- CVE-2017-12159 HIGH 7.5 DOWNGRADE MITIGATE It was found that the cookie used for CSRF prevention in Keycloak was not unique to each session
- CVE-2016-8629 MEDIUM 6.5 UPGRADE DOWNGRADE Red Hat Keycloak before version 2.4.0 did not correctly check permissions when handling service account user d