{"id":"CVE-2018-14655","aliases":["EUVD-2022-2302","GHSA-458h-wv48-fq75","RHSA-2018:3592","RHSA-2018:3593"],"status":"published","title":"Keycloak vulnerable to cross-site scripting via the state parameter","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.","severity":{"version":"3.0","score":4.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01194,"percentile":0.68251,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-79"],"published":"2018-11-13T19:00:00Z","modified":"2026-10-24T10:31:06Z","affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.keycloak:keycloak-parent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.4.3.Final"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.keycloak:keycloak-parent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0.Beta1"},{"last_affected":"4.0.0.Beta2"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.keycloak:keycloak-parent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.3.0.Final"},{"last_affected":"4.3.0.Final"}]}],"versions":["4.3.0.Final"]},{"source":"osv","ecosystem":"Maven","package":"org.keycloak:keycloak-parent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.4.3.Final"}]}],"versions":["1.0-alpha-1","1.0-alpha-1-12062013","1.0-alpha-2","1.0-alpha-3","1.0-alpha-4","1.0-beta-1","1.0-beta-1-20150521","1.0-beta-1-20150523","1.0-beta-2","1.0-beta-3","1.0-beta-4","1.0-final","1.0-rc-1","1.0-rc-2","1.0.1.Final","1.0.2.Final","1.0.3.Final","1.0.4.Final","1.0.5.Final","1.1.0.Beta1","1.1.0.Beta2","1.1.0.Final","1.1.1.Final","1.2.0.Beta1","1.2.0.CR1","1.2.0.Final","1.3.0.Final","1.3.1.Final","1.4.0.Final","1.5.0-Final","1.5.0.Final","1.5.1.Final","1.6.0.Final","1.6.1.Final","1.7.0.CR1","1.7.0.Final","1.8.0.Alpha1","1.8.0.CR1","1.8.0.CR2","1.8.0.CR3","1.8.0.Final","1.8.1.Final","1.9.0.CR1","1.9.0.Final","1.9.1.Final","1.9.2.Final","1.9.3.Final","1.9.4.Final","1.9.5.Final","1.9.7.Final","1.9.8.Final","2.0.0.CR1","2.0.0.Final","2.1.0.CR1","2.1.0.Final","2.2.0.CR1","2.2.0.Final","2.2.1.Final","2.3.0.CR1","2.3.0.Final","2.4.0.CR1","2.4.0.Final","2.5.0.CR1","2.5.0.Final","2.5.1.Final","2.5.4.Final","2.5.5.Final","3.0.0.CR1","3.0.0.Final","3.1.0.CR1","3.1.0.Final","3.2.0.CR1","3.2.0.Final","3.2.1.Final","3.3.0.CR1","3.3.0.CR2","3.3.0.Final","3.4.0.CR1","3.4.0.Final","3.4.1.CR1","3.4.1.Final","3.4.2.Final","3.4.3.Final"]},{"source":"osv","ecosystem":"Maven","package":"org.keycloak:keycloak-parent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0.Beta1"},{"last_affected":"4.0.0.Beta2"}]}],"versions":["4.0.0.Beta1","4.0.0.Beta2"]},{"source":"osv","ecosystem":"Maven","package":"org.keycloak:keycloak-parent","versions":["4.3.0.Final"]},{"source":"osv","ecosystem":"Red Hat:red_hat_single_sign_on:7::el6","package":"rh-sso7-keycloak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.4.14-1.Final_redhat_00001.1.jbcs.el6"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:red_hat_single_sign_on:7::el6","package":"rh-sso7-keycloak-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.4.14-1.Final_redhat_00001.1.jbcs.el6"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:red_hat_single_sign_on:7::el7","package":"rh-sso7-keycloak","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.4.14-1.Final_redhat_00001.1.jbcs.el7"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:red_hat_single_sign_on:7::el7","package":"rh-sso7-keycloak-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.4.14-1.Final_redhat_00001.1.jbcs.el7"}]}],"bundled":5}],"products":[{"vendor":"keycloak","product":"keycloak"},{"vendor":"red hat","product":"keycloak"},{"vendor":"redhat","product":"keycloak"},{"vendor":"redhat","product":"single_sign-on"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14655","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3592","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3593","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3595","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-14655","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-458h-wv48-fq75"},{"url":"https://github.com/keycloak/keycloak","tags":["package"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_single_sign_on/?version=7.2","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1599434","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1625396","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1625404","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1625409","tags":["report"]},{"url":"https://issues.redhat.com/browse/JBEAP-15587","tags":["article"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_3592.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-10894","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-10894","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-10894","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-14637","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1627851","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-14637","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-14637","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-14655","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-14655","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-14657","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-14657","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-14657","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-14658","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-14658","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-14658","tags":["advisory"]},{"url":"https://issues.redhat.com/browse/JBEAP-15588","tags":["article"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_3593.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2018-14655","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.","status":"published","published":"2018-11-13T19:00:00Z","modified":"2024-08-05T09:38:13.384Z","cvss":[{"version":"3.0","score":4.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:35:00.589142Z"}],"euvd":[{"id":"EUVD-2022-2302","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.","status":"published","published":"2018-11-13T19:00:00Z","modified":"2024-08-05T09:38:13Z","cvss":[{"version":"3.0","score":4.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T02:39:45.703245Z"}],"ghsa":[{"id":"GHSA-458h-wv48-fq75","title":"Keycloak vulnerable to cross-site scripting via the state parameter","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.","status":"published","published":"2022-05-13T01:34:29Z","modified":"2023-10-19T19:28:34Z","cvss":[{"version":"3.0","score":5.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:08.847568Z"}],"nvd":[{"id":"CVE-2018-14655","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.","status":"published","published":"2018-11-13T19:29:00.307Z","modified":"2026-06-17T01:41:23.19Z","cvss":[{"version":"3.0","score":4.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.0","score":5.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:04:47.196456Z"}],"osv":[{"id":"CVE-2018-14655","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.","status":"published","published":"2018-11-13T19:29:00.307Z","modified":"2026-10-24T10:31:06.736112463Z","cvss":[{"version":"3.0","score":5.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:08.242347Z"},{"id":"GHSA-458h-wv48-fq75","title":"Keycloak vulnerable to cross-site scripting via the state parameter","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.","status":"published","published":"2022-05-13T01:34:29Z","modified":"2024-02-16T07:53:36.176967Z","cvss":[{"version":"3.0","score":5.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:36.434231Z"},{"id":"RHSA-2018:3592","title":"Red Hat Security Advisory: Red Hat Single Sign-On 7.2.5 on RHEL 6 security and bug fix update","status":"published","published":"2024-09-13T16:54:06Z","modified":"2026-08-05T10:05:49Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:53:05.383061Z"},{"id":"RHSA-2018:3593","title":"Red Hat Security Advisory: Red Hat Single Sign-On 7.2.5 on RHEL 7 security and bug fix update","status":"published","published":"2024-09-13T16:54:12Z","modified":"2026-08-05T10:05:49Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:53:05.383061Z"}]}}
