Skip to content
Fencer Vulns
low 3.8

CVE-2022-2256 json

Keycloak vulnerable to Stored Cross site Scripting (XSS) when loading default roles

published 2022-09-01 4 y ago modified 2026-06-17 4 mo ago also GHSA-w9mf-83w3-fv49 , EUVD-2022-6960

cvss
3.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.7%
EPSS 0.7% chance of exploitation in 30 days, percentile 53%
public exploits
0
none known

Summary

A Stored Cross-site scripting (XSS) vulnerability was found in keycloak as shipped in Red Hat Single Sign-On 7. This flaw allows a privileged attacker to execute malicious scripts in the admin console, abusing the default roles functionality.

Patch / fix

  • maven org.keycloak:keycloak-parent 19.0.2
  • rh-sso7-keycloak red hat single sign on 7.5 15.0.8-1.redhat_00001.1.el8sso
  • rh-sso7-keycloak-server red hat single sign on 7.5 15.0.8-1.redhat_00001.1.el8sso
  • rh-sso7-keycloak red hat single sign on 7.5 15.0.8-1.redhat_00001.1.el7sso
  • rh-sso7-keycloak-server red hat single sign on 7.5 15.0.8-1.redhat_00001.1.el7sso

red hat advisories RHSA-2022:6783RHSA-2022:6782

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-2022-2256 updated cvss 3.8

keycloak: improper input validation permits script injection

  • Red Hat Single Sign-On 7
    fixed: vendor fix RHSA-2022:6787
  • Red Hat Single Sign-On 7.5 for RHEL 7 Server rh-sso7-keycloak 15.0.8-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server 15.0.8-1.redhat_00001.1.el7sso
    fixed: vendor fix RHSA-2022:6782
  • Red Hat Single Sign-On 7.5 for RHEL 8 rh-sso7-keycloak 15.0.8-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server 15.0.8-1.redhat_00001.1.el8sso
    fixed: vendor fix RHSA-2022:6783

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

0.70% chance of exploitation in the next 30 days, higher than 53% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 3.8 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
GitHub 3.1 5.4 CVSS:3.1/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
<19.0.2
19.0.2

Affected products

  • n/a 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.