Medplum - Improper Validation of Redirect URI in External Auth Callback allows Authorization Code Leakage
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| medplum | medplum | before 5.1.6 | 5.1.6 | Patch available | CNA |
| — | @medplum/core (npm) | before 5.1.6 | 5.1.6 | Patch available | GHSA-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
- 2026-10-02 Threatist record created from CVE-2026-53728
- 2026-10-03 Alias added: GHSA-m44r-7c5h-m6mj
References
More medplum vulnerabilities
- 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
- CVE-2026-53728 · CVE Program
- CVE-2026-53728 · NVD
- FIRST EPSS
- GHSA-m44r-7c5h-m6mj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences