CVE-2022-2256
LOW 3.8CVSS 3.1Keycloak vulnerable to Stored Cross site Scripting (XSS) when loading default roles
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.
- Published
- 1 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-w9mf-83w3-fv49
- Sources
- NVDJSONOSV GHSA-w9mf-83w3-fv49JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | LOW 3.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| OSV | Maven | org.keycloak:keycloak-parent | < 19.0.2 | 19.0.2 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2101942 · Issue Tracking, Vendor Advisory, WEB
- https://github.com/keycloak/keycloak/security/advisories/GHSA-w9mf-83w3-fv49 · Broken Link, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-2256 · ADVISORY
- https://github.com/keycloak/keycloak/commit/8e705a65ab2aa2b079374ec859ee7a75fad5a7d9 · WEB
- https://github.com/keycloak/keycloak · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 1 Sep 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 23 Sep 2022)