Description
Medplum is a developer platform that enables development of healthcare apps. Prior to version 5.1.6, the external identity provider callback at GET /auth/external accepts attacker-controlled redirect URIs that only need to start with a registered client redirect URI, rather than matching exactly. After a successful external IdP login, the server appends Medplum login and code values to that attacker-supplied URL and issues a redirect. Because the external login request state is serialized as raw JSON and later trusted by the callback, an attacker who can tamper with state.redirectUri can cause Medplum to redirect authorization artifacts to an attacker-controlled endpoint. When the registered redirect URI is a bare origin or another prefix that can be extended into a different hostname, this becomes a cross-origin authorization code leak. This issue has been patched in version 5.1.6.
Published: 2026-09-03
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An improper validation of redirect URIs in Medplum’s external identity provider callback allows an attacker to specify an arbitrary redirect destination that only needs to share a registered prefix. After a successful external IdP login, the server appends Medplum login and authorization code values to the supplied redirect URL and performs the redirection. Because the state information, which contains the redirect URI, is serialized as raw JSON and later trusted by the callback, an attacker who can modify state.redirectUri can cause the server to send authorization artifacts to a malicious endpoint. If the registered redirect URI is a bare origin or a prefix that can be extended into a different hostname, the leakage becomes cross‑origin, exposing authorization codes that can be exchanged for access tokens or granted account privileges.

Affected Systems

Medplum developer platform, all releases prior to v5.1.6. The vulnerability is present in versions before the 5.1.6 release in which the issue was patched.

Risk and Exploitability

The CVSS score of 7.1 reflects a high severity and availability of exploitation is likely through a web‑based attack. The EPSS score is not provided, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector is inferred to be client‑side web requests to the external authentication callback, exploiting the lack of strict URI validation. An attacker can perform unauthorized token theft by redirecting the authorization code to a controlled server. This can lead to compromise of user accounts and associated data.

Generated by OpenCVE AI on September 3, 2026 at 21:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply Medplum version 5.1.6 or later to correct redirect URI validation.
  • Reconfigure all client applications to use the exact registered URI and disable any prefix‑based matching if available.
  • Enable logging of authentication callbacks and establish alerts for redirects to unexpected destinations to detect abuse.

Generated by OpenCVE AI on September 3, 2026 at 21:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-m44r-7c5h-m6mj Medplum: Improper Validation of Redirect URI in External Auth Callback allows Authorization Code Leakage
History

Thu, 03 Sep 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Medplum
Medplum medplum
Vendors & Products Medplum
Medplum medplum

Thu, 03 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
Description Medplum is a developer platform that enables development of healthcare apps. Prior to version 5.1.6, the external identity provider callback at GET /auth/external accepts attacker-controlled redirect URIs that only need to start with a registered client redirect URI, rather than matching exactly. After a successful external IdP login, the server appends Medplum login and code values to that attacker-supplied URL and issues a redirect. Because the external login request state is serialized as raw JSON and later trusted by the callback, an attacker who can tamper with state.redirectUri can cause Medplum to redirect authorization artifacts to an attacker-controlled endpoint. When the registered redirect URI is a bare origin or another prefix that can be extended into a different hostname, this becomes a cross-origin authorization code leak. This issue has been patched in version 5.1.6.
Title Medplum - Improper Validation of Redirect URI in External Auth Callback allows Authorization Code Leakage
Weaknesses CWE-345
CWE-601
References
Metrics cvssV3_1

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-03T19:04:30.358Z

Reserved: 2026-06-10T16:43:31.242Z

Link: CVE-2026-53728

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-03T20:17:21.643

Modified: 2026-09-03T20:17:21.643

Link: CVE-2026-53728

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T21:45:09Z

Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity

  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')