keycloak: reflected XSS using HOST header
Published Oct 26, 2017
5.4
MEDIUMCVSS 3.0
EPSS 1.02%
Description
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 products
-
- Version 3.4.0StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Red Hat, Inc. | Keycloak | n/a |
|
Configuration 1
- 7.0
- 7.1
Running on/with
- 6.0
- 7.0
No data.
Red Hat Single Sign-On 7.1
n/a
Fixed · RHSA-2017:2906
Red Hat Single Sign-On 7.1 for RHEL 6
rh-sso7-keycloak-0:2.5.14-1.Final_redhat_1.1.jbcs.el6
Fixed · RHSA-2017:2904
Red Hat Single Sign-On 7.1 for RHEL 7
rh-sso7-keycloak-0:2.5.14-1.Final_redhat_1.1.jbcs.el7
Fixed · RHSA-2017:2905
Red Hat Mobile Application Platform 4
keycloak
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Single Sign-On 7.1 | n/a | Fixed | RHSA-2017:2906 |
| Red Hat Single Sign-On 7.1 for RHEL 6 | rh-sso7-keycloak-0:2.5.14-1.Final_redhat_1.1.jbcs.el6 | Fixed | RHSA-2017:2904 |
| Red Hat Single Sign-On 7.1 for RHEL 7 | rh-sso7-keycloak-0:2.5.14-1.Final_redhat_1.1.jbcs.el7 | Fixed | RHSA-2017:2905 |
| Red Hat Mobile Application Platform 4 | keycloak | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
AV:N/AC:M/Au:S/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (10 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.02% (0.01021) | 62.10th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.02% (0.01021) | 58.76th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.67% (0.00668) | 69.58th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.17% (0.00173) | 55.75th | v3 (v2023.03.01) |
| Sep 3, 2023 | 0.17% (0.00173) | 53.82th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.23% (0.00226) | 58.99th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.95% (0.00950) | 32.28th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.95% (0.00950) | 13.46th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.32% (0.01324) | 31.25th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.32% (0.01324) | 0.00th | v1 |
References (10)
- http://www.securityfocus.com/bid/101618 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2017:2904 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:2905 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:2906 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2017-12158 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1489161 x_refsource_CONFIRMIssue Tracking
- https://github.com/advisories/GHSA-v38p-mqq3-m6v5 Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-12158
- https://web.archive.org/web/20210124114020/http://www.securityfocus.com/bid/101618
- https://www.cve.org/CVERecord?id=CVE-2017-12158
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/101618 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/errata/RHSA-2017:2904 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/errata/RHSA-2017:2905 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/errata/RHSA-2017:2906 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2017-12158 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1489161 | x_refsource_CONFIRMIssue Tracking | |
| https://github.com/advisories/GHSA-v38p-mqq3-m6v5 | Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-12158 | ||
| https://web.archive.org/web/20210124114020/http://www.securityfocus.com/bid/101618 | ||
| https://www.cve.org/CVERecord?id=CVE-2017-12158 |
Change history (0)
No recorded changes yet.