{"id":"CVE-2022-4361","aliases":["CVE-2022-4361","GHSA-3p62-6fjh-3p5h"],"related":[],"kind":"vulnerability","state":"published","title":"Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"AssertionConsumerServiceURL is a Java implementation for SAML Service Providers (org.keycloak.protocol.saml). Affected versions of this package are vulnerable to Cross-site Scripting (XSS).\n\nAssertionConsumerServiceURL allows XSS when sending a crafted SAML XML request.","format":"markdown","source":"ghsa"}],"published":"2023-06-30T20:30:50.000Z","modified":"2026-06-17T05:20:41.540Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-81"],"affected":[{"ranges":[{"version":"21.1.2","status":"unaffected"}],"vendor":"keycloak","product":"keycloak","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"21.1.2"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"21.1.2"}],"vendor":"redhat","product":"keycloak","cpe":"cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"7.6","fixed":"7.6.4"}],"vendor":"redhat","product":"single_sign-on","cpe":"cpe:2.3:a:redhat:single_sign-on:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"4.11"},{"status":"affected","version":"4.12"}],"vendor":"redhat","product":"openshift_container_platform","cpe":"cpe:2.3:a:redhat:openshift_container_platform:4.11:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"4.9"},{"status":"affected","version":"4.10"}],"vendor":"redhat","product":"openshift_container_platform_for_ibm_linuxone","cpe":"cpe:2.3:a:redhat:openshift_container_platform_for_ibm_linuxone:4.9:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"4.9"},{"status":"affected","version":"4.10"}],"vendor":"redhat","product":"openshift_container_platform_for_power","cpe":"cpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2151618","tags":["issue-tracking","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-3p62-6fjh-3p5h","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4361","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2024-11-12T19:43:33.065Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-4361","url":"https://www.cve.org/CVERecord?id=CVE-2022-4361","licence":"CVE Terms of Use","modified":"2024-11-12T19:43:42.651Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3p62-6fjh-3p5h","url":"https://github.com/advisories/GHSA-3p62-6fjh-3p5h","licence":"CC-BY-4.0","modified":"2024-02-16T08:13:06.169Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-4361","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4361","licence":"Public domain","modified":"2026-06-17T05:20:41.540Z"}],"updatedAt":"2026-11-25T22:58:19.460Z","epss":{"score":0.00691,"percentile":0.54107,"date":"2026-12-01T12:00:22.000Z"}}