Skip to content
Fencer Vulns
medium 4.6

CVE-2018-14655 json

Keycloak vulnerable to cross-site scripting via the state parameter

published 2018-11-13 7 y ago modified 2026-06-17 4 mo ago also GHSA-458h-wv48-fq75 , EUVD-2022-2302

cvss
4.6
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.2%
EPSS 1.2% chance of exploitation in 30 days, percentile 68%
public exploits
0
none known

Summary

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.

Patch / fix

  • rh-sso7-keycloak red hat single sign on 7 3.4.14-1.Final_redhat_00001.1.jbcs.el7
  • rh-sso7-keycloak-server red hat single sign on 7 3.4.14-1.Final_redhat_00001.1.jbcs.el7
  • rh-sso7-keycloak red hat single sign on 7 3.4.14-1.Final_redhat_00001.1.jbcs.el6
  • rh-sso7-keycloak-server red hat single sign on 7 3.4.14-1.Final_redhat_00001.1.jbcs.el6

red hat advisories RHSA-2018:3593RHSA-2018:3592

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-14655 updated cvss 4.6

keycloak: XSS-Vulnerability with response_mode=form_post

  • Red Hat Fuse 7 keycloak keycloak
    affected: no fix planned “Will not fix”
  • Red Hat Mobile Application Platform 4 keycloak
    affected: no fix planned “Out of support scope”
  • Red Hat Single Sign-On 7.2 for RHEL 6 Server rh-sso7-keycloak 3.4.14-1.Final_redhat_00001.1.jbcs.el6, rh-sso7-keycloak-server 3.4.14-1.Final_redhat_00001.1.jbcs.el6
    fixed: vendor fix RHSA-2018:3592
  • Red Hat Single Sign-On 7.2 for RHEL 7 Server rh-sso7-keycloak 3.4.14-1.Final_redhat_00001.1.jbcs.el7, rh-sso7-keycloak-server 3.4.14-1.Final_redhat_00001.1.jbcs.el7
    fixed: vendor fix RHSA-2018:3593
  • Red Hat Single Sign-On 7.2.5 zip
    fixed: vendor fix RHSA-2018:3595

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.19% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.0 4.6 CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
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.3.Final
>=4.0.0.Beta1, <=4.0.0.Beta2
1 listed version
no fix listed

Affected products

  • Red Hat keycloak

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Vulns 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.