CVE-2017-12158 json
Keycloak Reflected XSS
published 9y ago modified last mo. also GHSA-v38p-mqq3-m6v5 , EUVD-2022-5267
- cvss
- 5.4
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.keycloak:keycloak-parent 3.4.0
- rh-sso7-keycloak red hat single sign on 7 2.5.14-1.Final_redhat_1.1.jbcs.el7
- rh-sso7-keycloak-server red hat single sign on 7 2.5.14-1.Final_redhat_1.1.jbcs.el7
- rh-sso7-keycloak red hat single sign on 7 2.5.14-1.Final_redhat_1.1.jbcs.el6
- rh-sso7-keycloak-server red hat single sign on 7 2.5.14-1.Final_redhat_1.1.jbcs.el6
red hat advisories RHSA-2017:2905RHSA-2017:2904
Is CVE-2017-12158 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-12158 updated cvss 5.4
keycloak: reflected XSS using HOST header
-
Red Hat Mobile Application Platform 4 keycloakaffected: no fix planned “Will not fix”
-
Red Hat Single Sign-On 7.1fixed: vendor fix RHSA-2017:2906
-
Red Hat Single Sign-On 7.1 for RHEL 6 Server rh-sso7-keycloak 2.5.14-1.Final_redhat_1.1.jbcs.el6, rh-sso7-keycloak-server 2.5.14-1.Final_redhat_1.1.jbcs.el6fixed: vendor fix RHSA-2017:2904
-
Red Hat Single Sign-On 7.1 for RHEL 7 Server rh-sso7-keycloak 2.5.14-1.Final_redhat_1.1.jbcs.el7, rh-sso7-keycloak-server 2.5.14-1.Final_redhat_1.1.jbcs.el7fixed: vendor fix RHSA-2017:2905
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.02% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.4 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| GitHub | 3.0 | 5.4 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-parent | <3.4.0 |
3.4.0 |
Affected products
- Red Hat, Inc. keycloak
Classification
References
-
access.redhat.com
/errata/RHSA-2017:2904
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2017:2905
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2017:2906
vendor-advisory, web, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1489161
web, issue-tracking
-
securityfocus.com
/bid/101618
vdb-entry, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2017-12158
advisory
-
web.archive.org
/web/20210124114020/http://www.securityfocus.com/bid/101618
web
Sources
- CVE List CVE-2017-12158
- GitHub Advisory GHSA-v38p-mqq3-m6v5
- NVD CVE-2017-12158
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.