Skip to content
OpenAdvisories
Medium · 4.6 CVE-2018-14655 EUVD-2022-2302GHSA-458h-wv48-fq75

Keycloak vulnerable to cross-site scripting via the state parameter

Published Nov 13, 2018 · Updated Aug 5, 2024 · Assigned by redhat

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
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

References