ToolJet OAuth Email Match Turns SSO Into an Account Takeover Path
ToolJet's OAuth SSO implementation once treated an email address as enough to identify an account. That design choice is the core of CVE-2026-137536, an authentication bypass that can give an unauthenticated caller a session for an existing user, including an administrator. The vendor advisory and CVE assignment describe the same failure: identity resolution depended on the provider-asserted email rather than a stored binding between the provider subject and the ToolJet account.
The disclosed failure
ToolJet's GitHub advisory explains that SSO sign-in looked up an account by email. The immutable SSO subject was checked for presence but was not stored as a user identity or used as the lookup key. The Google and Git strategies therefore had no durable (provider, subject) mapping to compare against the user being accessed.
A caller who reached the public SSO callback with a trusted-issuer token for a victim's email could receive that user's ToolJet session. The victim did not need to approve a prompt or supply a password. The same problem applied to local password users and invited users because the SSO path minted a session from the matched account rather than validating the original login method.
How the sign-in path resolves the wrong identity
The vulnerable sequence was straightforward. ToolJet received an OAuth token, validated the provider response, extracted an email, and called a user lookup by email. If an account existed, ToolJet generated the session payload for that account.
The critical gap came before that lookup. A stable provider subject identifies an OAuth identity across email changes and account-linking events. ToolJet parsed the subject but did not bind it to the local user. An email match therefore became the de facto account link, even when the SSO identity had never been attached to that account.
The advisory also notes that the server did not require a positive verified-email signal before linking or logging in. For Google, the vulnerable code ignored email_verified. For Git, the flow selected a primary address without requiring a verified result. The patched source at v3.21.94-beta adds an email-verification check before an SSO response can continue to account linking or session creation.
The token conditions an attacker needs
The exploit is not a universal password bypass for every ToolJet deployment. Several conditions still need to line up:
- Google SSO or Git SSO must be enabled.
- The attacker must know an email address that belongs to an existing ToolJet user.
- The address must pass any configured domain restriction. With no restricted domain, the advisory treats this condition as satisfied by default.
- The attacker needs a trusted-issuer token that carries the victim's email and does not establish a verified email.
- For the open-source Google path, the Google ID token's audience must match the target instance's configured client ID.
Those constraints explain why the vendor advisory assigns a moderate self-assessed score while the CVE assigning organization rates the issue much higher. The vendor advisory uses a conditional attack-complexity score of 6.5. The CVE record carries CVSS 4.0 score 9.3 and CVSS 3.1 score 9.8. Both assessments agree that a successful match can produce full account control; they differ on how readily an attacker can obtain the required assertion.
Why local passwords and MFA do not contain it
The bypass crosses the boundary between SSO and local authentication. A victim can have a strong local password, but the SSO callback does not consult it. If the application issues a session after matching the asserted email, the password becomes irrelevant to that path.
The same issue affects the practical value of MFA when the application treats the SSO assertion as sufficient authentication. ToolJet's advisory says the victim's password and password-based two-factor authentication are bypassed because authentication is decided by the asserted email. Responders should inspect the actual SSO and session logs instead of assuming that a protected local login prevents this class of takeover.
Affected versions and patch boundary
The GitHub advisory lists versions before 3.21.94-beta as affected and versions at or above 3.21.96-LTS as patched. The CVE record lists the affected range from 0 up to, but excluding, 3.21.94-beta, with 3.21.94-beta marked fixed. ToolJet's 3.21.94-beta release notes include the SSO sign-in hardening from pull request 17960.
That creates a beta and LTS distinction rather than a contradiction. 3.21.94-beta contains the new checks, while 3.21.96-LTS is the patched stable LTS build named by the advisory. Operators should choose a supported release line, verify the exact build, and avoid treating a similar-looking version string as proof of the fix.
Exposure context
A prior ZoomEye verification for this topic returned 689 matches for app="ToolJet" and zero matches for vul.cve="CVE-2026-137536". The 689 figure is a product-fingerprint count, not a count of confirmed vulnerable ToolJet deployments. It shows that ToolJet instances are discoverable on the internet, but it does not prove exposure, configuration, version, or exploitation.
Remediation and validation
Upgrade to 3.21.94-beta or later on the beta line, or to 3.21.96-LTS or later on the stable LTS line. After upgrading, verify the running build and confirm that Google or Git SSO rejects a response without a positive verified-email result.
Review existing SSO configuration for restricted domains and the intended set of identity providers. Shared single-tenant issuers and self-asserted email flows deserve particular attention. Administrators should also check recent SSO callback records for sessions created from an email that had no prior (provider, subject) binding, especially sessions for privileged accounts.
Top comments (0)