{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-4361","id":"CVE-2022-4361","title":"Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC","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.","descriptionLong":"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.","published":"2023-07-07T19:57:44.567Z","updated":"2026-10-28T10:31:28.223610613Z","reserved":"2022-12-08T11:04:48.560Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"redhat"},"metrics":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"redhat"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"redhat.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["keycloak"],"affectedProducts":[{"vendor":"keycloak","product":"keycloak","defaultStatus":"unaffected","versions":[{"status":"unaffected","version":"21.1.2"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","ranges":["<21.1.2"],"fixed":["21.1.2"],"advisory":"GHSA-3p62-6fjh-3p5h"}],"cwes":["CWE-81","CWE-79"],"aliases":["GHSA-3p62-6fjh-3p5h"],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2151618","tags":["x_transferred","Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a","tags":["x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4361.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4361","tags":["advisory"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-3p62-6fjh-3p5h","tags":["web"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.00691,"epssPercentile":0.53567,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-4361","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4361","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-4361","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3p62-6fjh-3p5h","ok":true,"note":"GHSA-3p62-6fjh-3p5h"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-4361","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}