CVE-2026-53728
Published:August 17, 2026
Updated:August 27, 2026
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.
Affected Packages
https://github.com/medplum/medplum.git (GITHUB):
Affected version(s) >=v2.0.0 <v5.1.6Fix Suggestion:
Update to version v5.1.6@medplum/core (NPM):
Affected version(s) >=0.0.18 <5.1.6Fix Suggestion:
Update to version 5.1.6Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.6
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
LOW