Read the docs
TI-2026-38748 Aliases CVE-2026-53728GHSA-m44r-7c5h-m6mj

Medplum - Improper Validation of Redirect URI in External Auth Callback allows Authorization Code Leakage

Priority HIGH 66CWE-345Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
Security bypass, Spoofing
Confidentiality · integrity · availability
High · High · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-345 and CWE-601.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00198 9th percentileScored 2026-11-07
Fix Fixed medplum (medplum): 5.1.6@medplum/core (npm): 5.1.6

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
medplummedplumbefore 5.1.65.1.6Patch availableCNA
—@medplum/core (npm)before 5.1.65.1.6Patch availableGHSA-m44r-7c5h-m6mj
  • medplum Vendormedplum Affected before 5.1.6 Fixed in 5.1.6 Patch available CNA
  • @medplum/core (npm) Vendor— Affected before 5.1.6 Fixed in 5.1.6 Patch available GHSA-m44r-7c5h-m6mj

Remediation

  • Fix · CNA medplum (medplum) Fixed in 5.1.6
  • Fix · GHSA-m44r-7c5h-m6mj @medplum/core (npm) Fixed in 5.1.6 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-53728
  2. 2026-10-03 Alias added: GHSA-m44r-7c5h-m6mj

References

  • TI-2026-32440 Medplum - Exposure of OAuth client secret via dynamic registration endpoint in self-hosted configurations CVSS 3.1HIGH 8.2
  • TI-2026-36340 Medplum < 5.1.14 SSRF via FHIR Subscription Endpoint CVSS 4.0MEDIUM 6.3

Sources