{"id":"CVE-2023-6291","aliases":["GHSA-mpwq-j3xf-7m5w"],"url":"https://o3.security/vulnerability/CVE-2023-6291","summary":"Keycloak: redirect_uri validation bypass","details":"An issue was found in the redirect_uri validation logic that allows for a bypass of otherwise explicitly allowed hosts.\n\nThe problem arises in the verifyRedirectUri method, which attempts to enforce rules on user-controllable input, but essentially causes a desynchronization in how Keycloak and browsers interpret URLs. Keycloak, for example, receives \"[www%2ekeycloak%2eorg%2fapp%2f:y@example.com](https://www%2ekeycloak%2eorg%2fapp%2f:y@example.com/)\" and thinks the authority to be keycloak.org when it is actually example.com. This happens because the validation logic is performed on a URL decoded version, which no longer represents the original input.\n\n### Acknowledgements\nKarel Knibbe ","published":"2024-01-26T14:23:43.185Z","modified":"2026-09-23T03:30:58.067916439Z","cvss":{"score":7.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-services","fixedVersion":"23.0.3"}],"fix":{"url":"https://github.com/keycloak/keycloak/commit/b2e91105315ccf2c1df549b4f6c5948322cbfd1b","label":"keycloak/keycloak@b2e9110"},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://access.redhat.com/jbossnetwork/restricted/listSoftware.html"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7854"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7855"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7856"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7857"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7858"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7860"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7861"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:0798"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:0799"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:0800"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:0801"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:0804"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2023-6291"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6291.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6291"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2251407"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-mpwq-j3xf-7m5w"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/commit/b2e91105315ccf2c1df549b4f6c5948322cbfd1b"},{"type":"PACKAGE","url":"https://github.com/keycloak/keycloak"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-23T03:30:58.067916439Z"}}