Moderate severityNVD Advisory· Published Sep 1, 2022· Updated Aug 3, 2024
CVE-2022-2256
CVE-2022-2256
Description
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.keycloak:keycloak-parentMaven | < 19.0.2 | 19.0.2 |
Affected products
1Patches
18e705a65ab2aMerge pull request from GHSA-w9mf-83w3-fv49 (#14271)
1 file changed · +3 −7
themes/src/main/resources/theme/base/admin/resources/js/services.js+3 −7 modified@@ -957,15 +957,11 @@ function clientSelectControl($scope, realm, Client) { delay: 500, allowClear: true, query: function (query) { - var data = {results: []}; Client.query({realm: realm, search: true, clientId: query.term.trim(), max: 20}, function(response) { - data.results = response; - query.callback(data); + query.callback({ results: response.map(function (client) { + return { id: client.id, text: client.clientId } + }); }); - }, - formatResult: function(object, container, query) { - object.text = object.clientId; - return object.clientId; } }; }
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-w9mf-83w3-fv49ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-2256ghsaADVISORY
- bugzilla.redhat.com/show_bug.cgighsax_refsource_MISCWEB
- github.com/keycloak/keycloak/commit/8e705a65ab2aa2b079374ec859ee7a75fad5a7d9ghsaWEB
- github.com/keycloak/keycloak/security/advisories/GHSA-w9mf-83w3-fv49ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.