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.
Published: 2026-07-30
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

MaxKey up to version 4.1.12 contains a flaw in DefaultRedirectResolver.hostMatches() that fails to apply dot‑boundary anchoring when validating redirect_uri hostnames. The vulnerability allows an attacker to craft a redirect URI whose hostname suffix matches a legitimate registered URI but points to a domain under the attacker’s control. When a victim authorizes such a link, the OAuth 2.0 authorization server issues a code to the attacker’s endpoint, which can then be exchanged for an access token and privileged identity data. This flaw demonstrates CWE‑183: Incorrect Comparison.

Affected Systems

Any installation of the dromara MaxKey identity server that includes the vulnerable DefaultRedirectResolver implementation and is running version 4.1.12 or earlier. The vulnerability applies to deployments that accept user‑supplied redirect_uri values during the OAuth 2.0 authorization flow.

Risk and Exploitability

The CVSS score of 8.5 indicates a high severity. Although the EPSS score is 0.0031 (<1%), indicating a very low current exploitation probability, the flaw permits a remote attack that requires only the ability to create a malicious authorization URL, which can be performed from any internet‑connected device. The vulnerability is not yet listed in CISA KEV but has an available fix and public disclosure. Attackers can exploit the weakness by social‑engineering victims into clicking a crafted URL; once the victim authorizes the request, the attacker receives an OAuth token that grants access to the victim’s identity, potentially leading to data exposure and unauthorized use of the victim’s credentials.

Generated by OpenCVE AI on August 2, 2026 at 05:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official patch from dromara, which includes commit ddbb72f or upgrade to a release that incorporates the fix.
  • Configure MaxKey to enforce strict exact matches for redirect_uri hostnames, ensuring that hostname suffixes receive dot‑boundary verification.
  • If patching is not immediately possible, restrict the list of allowed redirect_uri domains to those under your organization’s control and monitor OAuth traffic for abnormal redirect patterns.

Generated by OpenCVE AI on August 2, 2026 at 05:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Maxkey
Maxkey maxkey
CPEs cpe:2.3:a:maxkey:maxkey:*:*:*:*:*:*:*:*
Vendors & Products Maxkey
Maxkey maxkey

Thu, 30 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 30 Jul 2026 17:00:00 +0000

Type Values Removed Values Added
First Time appeared Dromara
Dromara maxkey
Vendors & Products Dromara
Dromara maxkey

Thu, 30 Jul 2026 15:00:00 +0000

Type Values Removed Values Added
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.
Title MaxKey 4.1.12 DefaultRedirectResolver OAuth Authorization Code Theft
Weaknesses CWE-183
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.5, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-14T16:50:56.659Z

Reserved: 2026-07-29T13:09:45.993Z

Link: CVE-2026-67345

cve-icon Vulnrichment

Updated: 2026-07-30T17:29:07.983Z

cve-icon NVD

Status : Deferred

Published: 2026-07-30T15:16:35.583

Modified: 2026-07-30T19:18:36.823

Link: CVE-2026-67345

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T05:30:06Z

Weaknesses
  • CWE-183

    Permissive List of Allowed Inputs