Cross-site scripting in Red Hat keycloak
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 3 fixed, 1 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Red Hat | keycloak | 3.4.0 | — | No fix listed | CNA |
| — | org.keycloak:keycloak-parent (Maven) | before 3.4.0 | 3.4.0 | Patch available | GHSA-v38p-mqq3-m6v5 |
- keycloak VendorRed Hat Affected 3.4.0 Fixed in — No fix listed CNA
- org.keycloak:keycloak-parent (Maven) Vendor— Affected before 3.4.0 Fixed in 3.4.0 Patch available GHSA-v38p-mqq3-m6v5
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:redhat:single_sign_on:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:single_sign_on:7.1:*:*:*:*:*:*:* | 7.1 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* | 6.0 | Running on | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* | 7.0 | Running on | Red Hat |
| cpe:2.3:a:keycloak:keycloak:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | Keycloak |
- cpe:2.3:a:redhat:single_sign_on:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:single_sign_on:7.1:*:*:*:*:*:*:* Versions 7.1 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* Versions 6.0 Running on ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Running on ·Red Hat
- cpe:2.3:a:keycloak:keycloak:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·Keycloak
Remediation
- Fix · GHSA-v38p-mqq3-m6v5 org.keycloak:keycloak-parent (Maven) Fixed in 3.4.0 Advisory →
Red Hat 3 advisories
- RHSA-2017:2905 Released 2017-10-17 · Red Hat rating Moderaterh-sso7-keycloak security update
- 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.el7
- RHSA-2017:2904 Released 2017-10-17 · Red Hat rating Moderaterh-sso7-keycloak security update
- 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.el6
- RHSA-2017:2906 Released 2017-10-17 · Red Hat rating ModerateRed Hat Single Sign-On security update
- Red Hat Single Sign-On 7.1
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
Red Hat keycloak — RHSA-2017:2904
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2017-08950 Insufficient session expiration in Red Hat keycloakPriority LOW 38
- TI-2017-08951 Improper authorization in Red Hat keycloakPriority LOW 35
- Advisory ·
Red Hat keycloak — RHSA-2017:2905
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2017-08950 Insufficient session expiration in Red Hat keycloakPriority LOW 38
- TI-2017-08951 Improper authorization in Red Hat keycloakPriority LOW 35
Show 1 more group
- Advisory ·
Red Hat keycloak — RHSA-2017:2906
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2017-08950 Insufficient session expiration in Red Hat keycloakPriority LOW 38
- TI-2017-08951 Improper authorization in Red Hat keycloakPriority LOW 35
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Mobile Application Platform 4 | Affected | No fix planned: Will not fix |
| Red Hat Single Sign-On 7.1 | Fixed | RHSA-2017:2906 |
| Red Hat Single Sign-On 7.1 for RHEL 6 Server | Fixed | RHSA-2017:2904 |
| Red Hat Single Sign-On 7.1 for RHEL 7 Server | Fixed | RHSA-2017:2905 |
Timeline
- 2026-10-02 Threatist record created from CVE-2017-12158
- 2026-10-03 Alias added: GHSA-v38p-mqq3-m6v5
References
More Red Hat Single Sign On vulnerabilities
- TI-2017-08950 Insufficient session expiration in Red Hat keycloak CVSS 3.0HIGH 7.5
- TI-2016-07091 Improper access control in Red Hat Keycloak CVSS 3.0MEDIUM 6.5
- TI-2017-01840 Information disclosure in Red Hat keycloak CVSS 3.0MEDIUM 5.9
Sources
- CVE-2017-12158 · CVE Program
- CVE-2017-12158 · NVD
- FIRST EPSS
- GHSA-v38p-mqq3-m6v5 · GitHub Advisory Database · CC BY 4.0
- CVE-2017-12158 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences