SuperTokens Go SDK: id_token Audience & Issuer Not Validated (CWE-345) | Whitenbaker Labs

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.

Severity High Class Account takeover · CWE-345 Affected supertokens-golang v0.26.0 Status Disclosed · no fix released
01

At a glance

CVERequested · submitted to CERT/CC, awaiting assignment
AdvisoryGHSA-gqxr-rwq8-hvrq (opened by vendor, unpublished)
ClassCWE-345 — Insufficient Verification of Data Authenticity (OIDC Core §3.1.3.7)
SeverityHigh (researcher assessment; higher where a provider serves multiple apps)
Affectedsupertokens-golang v0.26.0 — latest release (thirdparty recipe)
FixedNone. Vendor accepted the report but had not shipped a fix as of 21 Oct 2026.
VendorSuperTokens Inc.
VectorNetwork · public sign-in endpoint · a token from a shared provider
StatusDisclosed · vendor deadline of 18 Oct 2026 passed
ResearcherDrew 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.

02

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
03

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.

04

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.
05

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.

Whitenbaker Labs

Independent adversarial security research — silent-patch detection, CVE disclosure through MITRE, and the evidence behind both.

Research by Drew Morana (@dmorana) · Toronto

We don’t file reports. We prove findings.

Published for coordinated disclosure and defensive purposes. Findings were confirmed on a private test setup with a local test identity provider. No SuperTokens or customer systems were touched.

© 2026 Whitenbaker Labs
research@whitenbaker.com · PGP on request