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

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 5% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-17T13:36:17.000Z
- Modified: 2026-09-09T21:09:13.080Z
- Also known as: GHSA-m44r-7c5h-m6mj
- Weaknesses: CWE-345, CWE-601
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- medplum medplum: < 5.1.6
- @medplum/core (npm): before 5.1.6

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`

## References

- <https://github.com/medplum/medplum/security/advisories/GHSA-m44r-7c5h-m6mj> (exploit, web)
- <https://github.com/medplum/medplum/pull/8749> (web)
- <https://github.com/medplum/medplum/commit/7ae10035ddadde4dba7b18d3156553940465b3a1> (web)
- <https://github.com/medplum/medplum/releases/tag/v5.1.6> (web)
- <https://github.com/medplum/medplum> (package)

## Sources

- CVE List: [CVE-2026-53728](https://www.cve.org/CVERecord?id=CVE-2026-53728), CVE Terms of Use, modified 2026-09-09
- GitHub Advisory Database: [GHSA-m44r-7c5h-m6mj](https://github.com/advisories/GHSA-m44r-7c5h-m6mj), CC-BY-4.0, modified 2026-08-17
- NVD: [CVE-2026-53728](https://nvd.nist.gov/vuln/detail/CVE-2026-53728), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-53728 · Whole record: https://cve.day/CVE-2026-53728.json · Rebuilt by cve.day 2026-11-25T22:59:36.223Z
