Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @medplum/core
  4. ›
  5. CVE-2026-53728

CVE-2026-53728: Medplum: Improper Validation of Redirect URI in External Auth Callback allows Authorization Code Leakage

August 17, 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.

References

  • github.com/advisories/GHSA-m44r-7c5h-m6mj
  • github.com/medplum/medplum/commit/7ae10035ddadde4dba7b18d3156553940465b3a1
  • github.com/medplum/medplum/pull/8749
  • github.com/medplum/medplum/releases/tag/v5.1.6
  • github.com/medplum/medplum/security/advisories/GHSA-m44r-7c5h-m6mj
  • nvd.nist.gov/vuln/detail/CVE-2026-53728

Code Behaviors & Features

Detect and mitigate CVE-2026-53728 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.1.6

Fixed versions

  • 5.1.6

Solution

Upgrade to version 5.1.6 or above.

Impact 7.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity
  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/@medplum/core/CVE-2026-53728.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:20:22 +0000.