ToolJet's Google SSO Path: Audience, Verification and Account Linking
The Google variant of CVE-2026-137536 depends on how ToolJet interprets a Google ID token. The vulnerable server verified the signature and audience but did not require a positive email_verified claim before using the email to find a local account. The patch adds the missing verification signal to the provider response and rejects an explicit failure.
Google token validation is necessary, but it answers a limited question: the token was issued for the expected client and has a valid signature. It does not establish that every profile attribute should control account linking. ToolJet still needed to decide whether the email was verified and whether the caller's Google subject was already attached to the local user.
The token fields that matter
The Google ID token contains an issuer, audience, subject, email, and email-verification claim. ToolJet's configured client ID supplies the expected audience. The subject identifies the Google account. The email is a profile attribute that may change over time.
The vulnerable helper extracted the email and subject but discarded the verification result. The common service checked that both values were nonempty, then looked up a ToolJet user by email. A valid token for the expected client could therefore reach an account whose email matched, regardless of whether the token established a verified address.
Why the audience check still matters
The patched Google helper rejects an SSO configuration with no client ID before calling the token-verification library. The source comment explains that an undefined audience can cause the library to skip the audience check, which would accept an ID token issued for a different client.
That is a separate control from email verification. A token for the wrong client should fail even if its email happens to match a ToolJet user. Administrators should confirm that the Google client ID stored in ToolJet matches the intended OAuth application and that no alternate configuration bypasses the check.
The verification claim
The patched helper maps payload.email_verified into the shared response as a boolean. The OAuth service rejects the response when that value is explicitly false. This changes the account-creation and account-linking path for a token that carries the victim's email without a verified-email assertion.
A positive verification check reduces the set of usable tokens. It does not create a durable provider-to-user binding. The vendor advisory's recommended fix keeps email as a display attribute and resolves accounts by (provider, sub) first. That distinction is important for account lifecycle security, especially when an email address changes.
How an attacker could line up the conditions
The attacker needs a Google-signed ID token whose audience equals the target ToolJet client ID and whose email matches an existing local account without a verified-email result. The advisory describes a possible controlled Workspace scenario in which a victim address is added as an unverified secondary address.
The attacker does not need the victim's ToolJet password. The session is created from the matched local account. The victim may not need to interact with the application, and password-based two-factor authentication does not protect the SSO callback.
Those details explain the CVE score split. The vendor's own advisory uses a conditional 6.5 score, while the CVE assignment publishes 9.3 under CVSS 4.0 and 9.8 under CVSS 3.1. The difference reflects assumptions about attack complexity and token acquisition, not disagreement about the account-takeover consequence.
Affected builds
The vulnerable range ends before 3.21.94-beta in the advisory and CVE record. The beta release includes the hardening. The vendor advisory lists 3.21.96-LTS as the patched stable version. Verify the actual image or package, because a deployment can carry a version label without containing the intended source change.
Exposure context
The previously stored ZoomEye check found 689 app="ToolJet" product matches and zero vul.cve="CVE-2026-137536" matches. The product count is broad. It does not show whether Google SSO is enabled or whether a discovered instance can accept an unverified email assertion.
Use the count to locate ToolJet deployments, then verify the application version, Google client ID, domain restrictions, and SSO audit records. Do not describe the 689 matches as vulnerable or compromised.
Remediation review
Upgrade to a fixed release and test the exact Google flow in a staging environment. Use a token with the correct audience and a verified email, then test an unverified email and a token with the wrong audience. Confirm that only the intended response reaches the account-linking path.
Review the Google client configuration and the list of local users whose email could be asserted by a provider account. Tighten domain restrictions where possible. Add durable provider-subject logging so that a future investigation can separate a legitimate account link from an email collision.
