{"schemaVersion":3,"id":"CVE-2022-4361","aliases":["GHSA-3p62-6fjh-3p5h"],"status":"published","duplicateOf":null,"title":null,"description":"Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the SAML or OIDC providers. The vulnerability can allow an attacker to execute malicious scripts by setting the AssertionConsumerServiceURL value or the redirect_uri.","dates":{"published":"2023-07-07T19:57:44.567Z","modified":"2024-11-12T19:43:42.651Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":10,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","exploitability":10,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00691,"percentile":0.52231,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.06500000000000004,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00626},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00691,"percentile":0.52231}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00626,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00691,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00691,"percentile":0.52231}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-81","name":"Improper Neutralization of Script in an Error Message Web Page","description":"The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters that could be interpreted as web-scripting elements when they are sent to an error page.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/81.html"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"org.keycloak","product":"keycloak-services","name":"org.keycloak:keycloak-services","label":"keycloak-services","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.keycloak/keycloak-services","purlType":"maven","versions":[{"text":"< 21.1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 21.1.2","eol":null,"hubHref":null},{"vendor":"redhat","product":"keycloak","name":"keycloak","label":"keycloak","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 21.1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 21.1.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"keycloak","label":"Keycloak","category":"server-app"}},"hubHref":"/vendor/redhat/keycloak"},{"vendor":"redhat","product":"openshift_container_platform","name":"openshift container platform","label":"openshift_container_platform","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.11","noFixRecorded":false,"fixedIn":null},{"text":"4.12","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.11 | 4.12","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform"},{"vendor":"redhat","product":"openshift_container_platform_for_ibm_linuxone","name":"openshift container platform for ibm linuxone","label":"openshift_container_platform_for_ibm_linuxone","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.9","noFixRecorded":false,"fixedIn":null},{"text":"4.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.9 | 4.10","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform_for_ibm_linuxone"},{"vendor":"redhat","product":"openshift_container_platform_for_power","name":"openshift container platform for power","label":"openshift_container_platform_for_power","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.9","noFixRecorded":false,"fixedIn":null},{"text":"4.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.9 | 4.10","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform_for_power"},{"vendor":"redhat","product":"single_sign-on","name":"single sign-on","label":"single_sign-on","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 7.6, < 7.6.4","noFixRecorded":false,"fixedIn":null},{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.6, < 7.6.4 | na","eol":null,"hubHref":"/vendor/redhat/single_sign-on"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2151618","label":"bugzilla.redhat.com/show_bug.cgi?id=2151618","hostname":"bugzilla.redhat.com","tags":["WEB","Issue Tracking","Vendor Advisory"]},{"url":"https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a","label":"github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a","hostname":"github.com","tags":["WEB","Patch"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-3p62-6fjh-3p5h","label":"github.com/keycloak/keycloak/security/advisories/GHSA-3p62-6fjh-3p5h","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4361","label":"nvd.nist.gov/vuln/detail/CVE-2022-4361","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/keycloak/keycloak","label":"github.com/keycloak/keycloak","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["RHSA-2023:3883","RHSA-2023:3884","RHSA-2023:3885"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-07-07T19:57:44.567Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-11-12T19:43:42.651Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T07:36:17.090Z","stale":false,"partial":false}}