Advisory · CWE-345 · CVE submitted, awaiting review
The SuperTokens Go SDK accepts a login token made for someone else’s app
The SDK verifies that an id_token was signed by the identity provider, but never checks the token’s audience or issuer. A token issued for a different app on the same provider can sign a user into the target app. The library supports both checks — neither is enabled.
At a glance
| CVE | Requested · submitted to CERT/CC, awaiting assignment |
|---|---|
| Advisory | GHSA-gqxr-rwq8-hvrq (opened by vendor, unpublished) |
| Class | CWE-345 — Insufficient Verification of Data Authenticity (OIDC Core §3.1.3.7) |
| Severity | High (researcher assessment; higher where a provider serves multiple apps) |
| Affected | supertokens-golang v0.26.0 — latest release (thirdparty recipe) |
| Fixed | None. Vendor accepted the report but had not shipped a fix as of 21 Oct 2026. |
| Vendor | SuperTokens Inc. |
| Vector | Network · public sign-in endpoint · a token from a shared provider |
| Status | Disclosed · vendor deadline of 18 Oct 2026 passed |
| Researcher | Drew Morana (@dmorana) · Whitenbaker Labs — credited as first reporter |
A signature is not an audience
A valid signature proves the provider minted the token. It does not prove the token was minted for this app. OIDC requires the client to check both; the SDK checks only the first.
What goes wrong
In recipe/thirdparty/providers/oauth2_impl.go, the token is parsed with jwt.ParseWithClaims and no options. The golang-jwt library checks aud only when passed jwt.WithAudience and iss only when passed jwt.WithIssuer. Neither is passed, and the app’s client ID is never read. Providers sign every app’s tokens with the same key, and the SDK verifies only against the provider’s key set — so a token minted for any app under that provider passes. When a discovery endpoint is configured, the SDK keeps the key address and discards the issuer.
Tested on v0.26.0 against a local test identity provider:
- Token signed by an untrusted keyrejected — correct
- This app’s token, with the right issueraccepted — correct
- Another app’s token on the same provideraccepted — wrong
- This app’s token, with an unknown issueraccepted — wrong
Impact
A token for one app on a shared provider opens a session on another.
An attacker who runs — or can register — another app on the same provider can obtain a signed token for a user who signs in to that app. Sent to the target app’s SuperTokens sign-in endpoint, it opens a session on the victim’s existing account. The gap is only reachable where the provider serves more than one app; single-app providers are not exposed through this path.
Disclosure timeline
- 27 Aug 2026Reported to SuperTokens security with a suggested fix.
- 30 Sep 2026Vendor accepted the report, consolidated it into GHSA-gqxr-rwq8-hvrq, and credited Drew Morana — stating it would publish only after its managed fleet was patched.
- 12 Oct 2026Vendor offered $650 total for the accepted reports — declined.
- 13 Oct 202618 Oct 2026 publication deadline set, fixed or not. No reply.
- 17 Oct 2026Submitted to CERT/CC requesting a CVE.
- 21 Oct 2026Published; re-confirmed on v0.26.0 with no fix shipped.
Remediation
No vendor fix is available. Set ValidateIdTokenPayload on each provider config to reject any token whose aud is not your client ID or whose iss is not your provider. The two parser options (jwt.WithAudience and jwt.WithIssuer) are already present in the library version the SDK pins. Operators needing guidance can contact Whitenbaker Labs.
