Description
MaxKey through 4.1.12, fixed in commit ddbb72f, contains an insufficient redirect URI validation vulnerability in DefaultRedirectResolver.hostMatches() that allows remote attackers to hijack OAuth 2.0 authorization codes by supplying a crafted redirect_uri whose hostname suffix matches a registered URI without proper dot-boundary anchoring. Attackers who control a domain ending with the registered redirect URI hostname can social-engineer victims into clicking a crafted authorization URL, causing the authorization code to be issued to the attacker-controlled URI and exchanged for an access token granting access to the victim's identity.
Severity (CVSS)
| Base score | 8.5 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-183 — Permissive List of Allowed Inputs
Affected products
| Vendor | Product | Versions |
|---|---|---|
| dromara | MaxKey | 0 to <=4.1.12; ddbb72fb24ab8e66aa422fb14b1177330bcffb45 |
References
- https://github.com/dromara/MaxKey/issues/269 (technical-description exploit)
- https://github.com/dromara/MaxKey/commit/ddbb72fb24ab8e66aa422fb14b1177330bcffb45 (patch)
- https://www.vulncheck.com/advisories/maxkey-defaultredirectresolver-oauth-authorization-code-theft (third-party-advisory)
Generated from the official CVE List on 31 Jul 2026 07:05 UTC.