Vulnerability library
Security checkAugust 17, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@medplum/core

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the @medplum/core package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 5.1.5
  • Patched version(s): 5.1.6

References

Could your website be exposed too?

SmartScanner can check your website for Medplum: Improper Validation of Redirect URI in External Auth Callback allows Authorization Code Leakage and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated August 17, 2026