{"schemaVersion":3,"id":"CVE-2022-4137","aliases":["GHSA-9hhc-pj4w-w5rv"],"status":"published","duplicateOf":null,"title":null,"description":"A reflected cross-site scripting (XSS) vulnerability was found in the 'oob' OAuth endpoint due to incorrect null-byte handling. This issue allows a malicious link to insert an arbitrary URI into a Keycloak error page. This flaw requires a user or administrator to interact with a link in order to be vulnerable. This may compromise user details, allowing it to be changed or collected by an attacker.","dates":{"published":"2023-09-25T19:17:55.522Z","modified":"2024-08-03T01:27:54.542Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":7.2,"impact":8.7,"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.01193,"percentile":0.67733,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.04399999999999994,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.01149},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01193,"percentile":0.67733}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01149,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01193,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01193,"percentile":0.67733}]},"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-parent","name":"org.keycloak:keycloak-parent","label":"keycloak-parent","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.keycloak/keycloak-parent","purlType":"maven","versions":[{"text":"< 20.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 20.0.5","eol":null,"hubHref":null},{"vendor":"redhat","product":"keycloak","name":"keycloak","label":"keycloak","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"keycloak","label":"Keycloak","category":"server-app"}},"hubHref":"/vendor/redhat/keycloak"},{"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","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.6","eol":null,"hubHref":"/vendor/redhat/single_sign-on"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/errata/RHSA-2023:1043","label":"access.redhat.com/errata/RHSA-2023:1043","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2023:1044","label":"access.redhat.com/errata/RHSA-2023:1044","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2023:1045","label":"access.redhat.com/errata/RHSA-2023:1045","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2023:1049","label":"access.redhat.com/errata/RHSA-2023:1049","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-4137","label":"access.redhat.com/security/cve/CVE-2022-4137","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","WEB","Vendor Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2148496","label":"bugzilla.redhat.com/show_bug.cgi?id=2148496","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","WEB","Vendor Advisory"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-9hhc-pj4w-w5rv","label":"github.com/keycloak/keycloak/security/advisories/GHSA-9hhc-pj4w-w5rv","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4137","label":"nvd.nist.gov/vuln/detail/CVE-2022-4137","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/keycloak/keycloak/pull/16774","label":"github.com/keycloak/keycloak/pull/16774","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak/commit/30d0e9d22dae51392e5a3748a1c68c116667359a","label":"github.com/keycloak/keycloak/commit/30d0e9d22dae51392e5a3748a1c68c116667359a","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak","label":"github.com/keycloak/keycloak","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["RHSA-2023:1043","RHSA-2023:1044","RHSA-2023:1045"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-09-25T19:17:55.522Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T01:27:54.542Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T04:49:43.913Z","stale":false,"partial":false}}