Advisories for Npm/@Medplum/Core package

2026

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

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 …