Advisory · Account takeover · CVE submitted, awaiting review
Sign in with Apple hands the login to any address the caller picks
SuperTokens’ backend SDKs read the post-login destination from the unsigned state parameter and redirect the user’s browser there — carrying Apple’s login code and id_token. An attacker who sets the state receives the victim’s login credentials. The app’s own configured domain is available to the SDK and never checked.
At a glance
| CVE | Requested · submitted, awaiting assignment |
|---|---|
| Advisories | GHSA-4wv9-8h92-4cg8 · GHSA-j9qp-rxcc-p53p · GHSA-3vrp-2rj4-wvw6 (opened by vendor, unpublished) · CERT/CC VRF#26-09-WZJRP |
| Class | CWE-601 (Open Redirect) · CWE-522 — leads to account takeover |
| Severity | High · CVSS 8.1 (vendor) (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N) |
| Affected | Go v0.26.0 · Node v24.0.3 · Python v0.31.3 — each the latest release at the time |
| Fixed | None released |
| Vendor | SuperTokens Inc. |
| Vector | Network · no account needed · requires the victim to complete a normal sign-in |
| Status | Disclosed · vendor deadline of 18 Oct 2026 passed · no fix released |
| Researcher | Drew Morana (@dmorana) · Whitenbaker Labs |
The promise under test
Sign in with Apple is supposed to prove who the user is to this app. Here the SDK lets the caller choose where the proof is delivered — and the app’s own domain, which would have caught it, is never consulted.
What goes wrong
On the Apple sign-in callback, the SDK decodes state as plain base64 JSON — no signature, no server-side copy to verify against — and uses the frontendRedirectURI field as the redirect target without validation. A loop then copies every field Apple posted, including code and id_token, onto that URL.
- The attacker builds a genuine Apple sign-in link for the target app — the client ID is public — with their own
stateembedded. - The victim sees the normal Apple prompt and signs in as usual.
- The SDK redirects to the attacker’s address, carrying the login
codeandid_token. - A test on Node 24.0.3 (21 Oct 2026) produced a 303 redirect with the code and id_token sent to an external host.
A sharper edge in Go
In the Go SDK, a state with no address causes a crash from an unchecked type conversion at implementation.go:133.
Impact
The victim signs in to the real app. The attacker receives the same credentials the app uses to finish the job.
Any app running one of these SDKs with Sign in with Apple is exposed, and the attacker needs no account on the target app. The vendor first rated this an open redirect, then on 30 Sep 2026 re-rated it to account takeover at CVSS 8.1.
Disclosure timeline
- 27 Aug 2026Go SDK finding reported to SuperTokens security with a suggested fix.
- 05 Sep 2026Vendor confirmed the missing check but rated it an open redirect; Node and Python reported the same day.
- 29 Sep 2026Filed with CERT/CC.
- 30 Sep 2026Re-rated to account takeover across all three SDKs; advisories opened; researcher credited.
- 12 Oct 2026Vendor offered $650 total for the accepted reports — declined; publication set for 18 Oct 2026.
- 13 Oct 2026Deadline communicated in writing; no reply.
- 21 Oct 2026Published. No fixed release existed in any of the three SDKs.
Remediation, until a fix ships
Override the Apple callback handler — appleRedirectHandlerPOST in Go and Node, apple_redirect_handler_post in Python — to reject any state whose redirect target is not the operator’s own website domain. Alternatively, disable Sign in with Apple. Operators needing guidance can contact Whitenbaker Labs.
