{"id":"CVE-2022-4361","published":"2023-07-07T19:57:44Z","modified":"2024-11-12T19:43:42Z","title":"Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in…","vendor":"keycloak","product":"keycloak","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00691,"percentile":0.53768,"provenance":"source"},"cwes":[{"id":"CWE-81","name":"Improper Neutralization of Script in an Error Message Web Page"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2151618","tags":[]},{"url":"https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a","tags":[]}],"priority":{"score":22.8,"factors":[{"name":"EPSS percentile","points":10.75},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":7.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2025-11-09","earliestUrl":"https://github.com/faccimatteo/CVE-2022-4361","repos":[{"name":"faccimatteo/CVE-2022-4361","url":"https://github.com/faccimatteo/CVE-2022-4361","stars":0,"created":"2025-11-09"}]},"first":{"date":"2025-11-09","source":"PoC-in-GitHub","url":"https://github.com/faccimatteo/CVE-2022-4361"},"provenance":"source"},"vendorSlug":"keycloak","fixedVersions":[{"vendor":"keycloak","product":"keycloak","versions":["21.1.2"]}],"capec":[{"id":"CAPEC-63","name":"Cross-Site Scripting (XSS)"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-11-12T19:43:33.065184Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-services","vulnerableRanges":["<21.1.2"],"patched":["21.1.2"],"from":["GHSA-3p62-6fjh-3p5h"],"provenance":"source"}],"summary":{"text":"Keycloak, an open-source identity and access management product, contains a cross-site scripting (XSS) flaw in its SAML and OIDC providers. An attacker can run malicious scripts by manipulating the AssertionConsumerServiceURL or redirect_uri value, and the attack requires no authentication or user interaction over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:43Z"},"euvd":{"id":"EUVD-2023-1671","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-build-of-keycloak-22-cve-2020-10748","parents":[{"from":"CVE-2022-3782","to":"CVE-2022-4361","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/protocol/oidc/utils/RedirectUtils.java"],"commits":["https://github.com/keycloak/keycloak/commit/1987c942f527b9f3bbf2a86ba71ba8ae0154ac37","https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a"],"basis":"shared function","functions":["verifyRedirectUri"]}]}],"children":[{"from":"CVE-2022-4361","to":"CVE-2023-6134","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/protocol/oidc/utils/RedirectUtils.java"],"commits":["https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a","https://github.com/keycloak/keycloak/commit/15a21bf8e4fb71f006ba9caf25b9c9d1d152cd20"],"basis":"shared function","functions":["relativeToAbsoluteURI","verifyRedirectUri"]}]},{"from":"CVE-2022-4361","to":"CVE-2023-6291","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/protocol/oidc/utils/RedirectUtils.java"],"commits":["https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a","https://github.com/keycloak/keycloak/commit/b2e91105315ccf2c1df549b4f6c5948322cbfd1b"],"basis":"shared function","functions":["relativeToAbsoluteURI"]}]}]}}