CVE-2022-2256 json
Keycloak vulnerable to Stored Cross site Scripting (XSS) when loading default roles
published 4y ago modified 4mo 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
Is CVE-2022-2256 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor 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 7fixed: 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.el7ssofixed: 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.el8ssofixed: 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-09).
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
-
github.com
/keycloak/keycloak/commit/8e705a65ab2aa2b079374ec859ee7a75fad5a7d9
web
-
bugzilla.redhat.com
/show_bug.cgi?id=2101942
web, issue-tracking, vendor-advisory
-
github.com
/keycloak/keycloak/security/advisories/GHSA-w9mf-83w3-fv49
web, broken-link, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-2256
advisory
-
github.com
/keycloak/keycloak
package
Sources
- CVE List CVE-2022-2256
- GitHub Advisory GHSA-w9mf-83w3-fv49
- NVD CVE-2022-2256
Fencer Intel 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.