Description
A flaw was found in Keycloak 3.4.3.Final, 4.0.0.Beta2, 4.3.0.Final. When using 'response_mode=form_post' it is possible to inject arbitrary Javascript-Code via the 'state'-parameter in the authentication URL. This allows an XSS-Attack upon succesfully login.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | keycloak | 3.4.3.Final, 4.0.0.Beta2, 4.3.0.Final | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Single Sign On 7 | rh-sso7-keycloak +1 | 3.4.14-1.Final_redhat_00001.1.jbcs.el6 | RHSA-2018:3593, RHSA-2018:3592 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-parent | <= 3.4.3.Final | — | GHSA-458h-wv48-fq75 |
| Maven | org.keycloak:keycloak-parent | >= 4.0.0.Beta1, <= 4.0.0.Beta2 | — | GHSA-458h-wv48-fq75 |
| Maven | org.keycloak:keycloak-parent | 4.3.0.Final | — | GHSA-458h-wv48-fq75 |
Advisories 2
- RHSA-2018:3592 Red Hat Security Advisory: Red Hat Single Sign-On 7.2.5 on RHEL 6 security and bug fix update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2018:3593 Red Hat Security Advisory: Red Hat Single Sign-On 7.2.5 on RHEL 7 security and bug fix update Red Hat Security Advisories (RHSA) · Aug 5, 2026
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14655
- RHSA-2018:3592 vendor-advisory
- RHSA-2018:3593 vendor-advisory
- RHSA-2018:3595 vendor-advisory