{"id":"CVE-2022-2256","aliases":[],"url":"https://o3.security/vulnerability/CVE-2022-2256","summary":"Keycloak vulnerable to Stored Cross site Scripting (XSS) when loading default roles","details":"A Stored XSS vulnerability was reported in the Keycloak Security mailing list, affecting all the versions of Keycloak, including the latest release (18.0.1). The vulnerability allows a privileged attacker to execute malicious scripts in the admin console, abusing of the default roles functionality. \n\n### CVSS 3.1 - **3.8**\n\n**Vector String:** AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N\n\n**Vector Clarification:**\n\n* User interaction is not required as the admin console is regularly used during an administrator's work\n* The scope is unchanged since the admin console web application is both the vulnerable component and where the exploit executes\n\n### Credits\n\nAytaç Kalıncı, Ilker Bulgurcu, Yasin Yılmaz (@aytackalinci, @smileronin, @yasinyilmaz) - NETAŞ PENTEST TEAM\n","published":"2022-09-23T16:32:51Z","modified":"2026-05-04T08:46:05.321219676Z","cvss":{"score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-parent","fixedVersion":"19.0.2"}],"fix":{"url":"https://github.com/keycloak/keycloak/commit/8e705a65ab2aa2b079374ec859ee7a75fad5a7d9","label":"keycloak/keycloak@8e705a6"},"references":[{"type":"WEB","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-w9mf-83w3-fv49"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2256"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/commit/8e705a65ab2aa2b079374ec859ee7a75fad5a7d9"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2101942"},{"type":"PACKAGE","url":"https://github.com/keycloak/keycloak"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-05-04T08:46:05.321219676Z"}}