What ToolJet's OAuth Patch Changes in SSO Account Linking
ToolJet's fix for CVE-2026-137536 adds checks where the vulnerable flow had assumptions. The patched server requires a positive verified-email result before it continues SSO account linking, and the Google provider now returns that result from the token payload. A review of the tagged source shows how those checks interact with the existing email lookup.
The patch is small enough to inspect directly, which makes the version guidance more useful. Administrators can verify that a running build includes the verification field, the SSO service check, and the release note that shipped the change.
The vulnerable decision point
The old path accepted a provider response, checked that the subject and email were nonempty, and then looked up a local user by email. The subject was not persisted as part of the user record and was not used to resolve the account.
That sequence separated the provider identity from the local identity. A caller could obtain a token for a provider account carrying a victim's email, reach the callback, and have ToolJet interpret the matching email as authorization to open the victim's account.
The new verified-email gate
The tagged v3.21.94-beta OAuth service rejects a response when emailVerified is explicitly false. This check occurs before the application proceeds to account lookup and session creation.
The Google helper now returns emailVerified: !!payload?.email_verified. The Git helper returns emailVerified: true when GitHub exposes a profile email and otherwise uses the verified flag from the primary-email response. The server can therefore reject an assertion that the provider marks as unverified.
The check uses an explicit false comparison. Administrators should not infer that every provider path was fully hardened by this one condition. The vendor advisory's longer remediation guidance calls for a stored (provider, subject) link and an authenticated collision-handling flow. Those controls address identity binding rather than only the email claim.
The audience check around Google tokens
The patched Google helper also rejects a configuration without a client ID before it calls the token-verification library. The source comment explains the reason: when the audience is undefined, the library can skip the audience check and accept an ID token for another client.
This is a separate hardening measure in the same fix area. A strong email-verification check still depends on the token being issued for the intended ToolJet client. Operators should verify that the Google SSO configuration has the expected client ID and that the application uses it during token verification.
The invite and signup changes
Pull request 17960 bundles several sign-in and signup checks. It validates that the logged-in caller's email matches the target invite before creating a session. It changes workspace signup activation so the instant path applies only when the existing account already has a password. It also removes a fallback that treated instance-wide SSO signup as enabled when it was not.
Those changes matter because the reported takeover sits next to account invitation and SSO activation logic. An operator who upgrades gets the combined hardening, not only the email-verification field. The release notes call out the PR as a fix for invite acceptance, workspace signup, and SSO sign-in checks.
Affected and fixed builds
The advisory lists versions before 3.21.94-beta as affected. Patched versions are >=3.21.96-LTS according to the advisory page. The CVE assignment marks 3.21.94-beta as fixed and lists the affected range as versions from 0 up to, but excluding, that beta.
The practical recommendation is to run a supported fixed build and verify the source or release artifact. Beta users can evaluate 3.21.94-beta or later. Stable LTS users should target 3.21.96-LTS or later. A version string alone is weak evidence if the deployment uses a custom image or a backported package.
Affected deployment context
The vulnerability requires Google or Git SSO. It also needs an existing user email that a trusted provider can assert. Deployments that use only local authentication do not exercise the reported SSO callback path.
SSO with a broad or unrestricted domain setting deserves immediate review. Even with the patch, account linking should be treated as a security decision. A verified email match is a reason to require a deliberate link when the local account has no recorded provider subject.
Exposure evidence
The prior ZoomEye check stored for this topic found 689 matches for app="ToolJet" and zero for vul.cve="CVE-2026-137536". The 689 count describes product fingerprint matches. It does not identify vulnerable versions, exposed SSO settings, or successful attacks. The repository evidence is useful for inventory, while the patch review and version inventory determine exposure.
Upgrade verification
After deployment, verify the release tag, the OAuth service's email-verification branch, the Google helper's emailVerified field, and the configured client ID. Test a valid SSO response, an explicitly unverified response, and a token with the wrong audience in a non-production environment.
Then inspect existing SSO configurations. Remove unrestricted domain settings where a tight boundary is appropriate. Review all users who were matched by email rather than a persisted provider subject. If the patch is applied but the account-linking model remains email-keyed, keep monitoring and plan the stronger subject-binding change.
