Skip to content
CVE-2026-137536

ToolJet OAuth SSO Authentication Bypass via Email-Based Account Linking (CVE-2026-137536)

Detects exploitation of CVE-2026-137536, an authentication bypass (CWE-290) in ToolJet before 3.21.94-beta. The server OAuth SSO sign-in module resolves Google and Git SSO logins solely by the email address returned by the identity provider, linking the SSO identity to any existing local ToolJet account with a matching email. An attacker who controls a Google or Git(Hub) account whose verified email matches a victim's ToolJet account, or who can register an SSO identity with an arbitrary/unverified email that collides with a target, can take over that account without knowing its password. Detection focuses on SSO sign-in events that link to pre-existing local accounts, first-time SSO logins for established users, and SSO logins from anomalous providers, IPs, or geographies relative to the account's history.

Based on VulnCheck Advisory, ToolJet before 3.21.94-beta account takeover via SSO email-based account linking

Vulnerability Intelligence

Theoretical

What is CVE-2026-137536 ToolJet OAuth SSO Authentication Bypass via Email-Based Account Linking (CVE-2026-137536)?

ToolJet OAuth SSO Authentication Bypass via Email-Based Account Linking (CVE-2026-137536) (CVE-2026-137536) maps to the Initial Access and Persistence and Privilege Escalation tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for ToolJet OAuth SSO Authentication Bypass via Email-Based Account Linking (CVE-2026-137536), covering the data sources and telemetry it touches: ToolJet application logs, OAuth/SSO sign-in events. The queries below are rated critical severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Persistence Privilege Escalation
Microsoft Sentinel / Defender
kusto
// df00tech DF00-77991af6b8 · https://df00tech.com/detections/CVE-2026-137536 · licence: https://df00tech.com/detections/licence
// ToolJet OAuth SSO account-takeover via email-based account linking (CVE-2026-137536)
// ToolJet application logs ingested as custom table ToolJet_CL. Adjust field names to your pipeline.
ToolJet_CL
| where TimeGenerated > ago(14d)
| where event_s has_any ("sso_login", "oauth_signin", "sso_sign_in")
| where provider_s in~ ("google", "git", "github", "gitlab")
| extend Email = tolower(tostring(column_ifexists("email_s", "")))
| extend AccountPreexisting = tobool(column_ifexists("account_preexisting_b", false))
| extend AuthSource = tolower(tostring(column_ifexists("existing_auth_source_s", "")))
// Flag: SSO identity linked to an account whose original credential source is local password
| where AccountPreexisting == true and (AuthSource == "local" or AuthSource == "password" or AuthSource == "")
| summarize FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), Providers = make_set(provider_s), SrcIPs = make_set(src_ip_s), Count = count() by Email
| extend DistinctProviders = array_length(Providers)
| project Email, FirstSeen, LastSeen, Providers, DistinctProviders, SrcIPs, Count
| order by LastSeen desc

Finds ToolJet SSO (Google/Git) sign-in events that link to a pre-existing account originally created with a local password, the core abuse primitive of CVE-2026-137536.

critical severity medium confidence

Data Sources

ToolJet application logs OAuth/SSO sign-in events

Required Tables

ToolJet_CL

False Positives

  • Legitimate users who previously had a password-based account and are intentionally linking Google/Git SSO for the first time after an admin-enabled SSO rollout.
  • Account migration or bulk SSO onboarding projects where all users link SSO within a short window.
  • QA/test accounts deliberately exercising the SSO linking flow in a staging tenant.

Query fingerprint DF00-77991af6b8 · licence

Sigma logsource & community rules

The detection logic for ToolJet OAuth SSO Authentication Bypass via Email-Based Account Linking (CVE-2026-137536) (CVE-2026-137536) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  product: windows

Browse the community-maintained Sigma rules for this technique:


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 SSO account linking onto pre-existing local account (lab)

    Expected signal: ToolJet auth log entry event=sso_login provider=google [email protected] account_preexisting=true existing_auth_source=local

  2. Test 2 Git SSO login with colliding email

    Expected signal: ToolJet auth log entry event=sso_login provider=git [email protected] src_ip=203.0.113.77 account_preexisting=true

  3. Test 3 Rapid multi-provider linking to a single account

    Expected signal: Two ToolJet sso_login events for [email protected] with provider=google and provider=git within seconds


Response Playbook

Triage

  1. Identify the affected ToolJet account(s) by email and confirm each account's original credential source, if it was created with a local password and an SSO (Google/Git) identity was just linked, treat it as a candidate takeover.
  2. Determine the ToolJet server version; if it is before 3.21.94-beta it is vulnerable to CVE-2026-137536 and SSO linking cannot be trusted to prove identity.
  3. Review the SSO sign-in's source IP, user-agent, and geolocation and compare against the account's historical login baseline for anomalies (new ASN, new country, impossible travel).
  4. Check whether the email claimed by the SSO provider was actually verified by that provider, and whether multiple provider identities (Google and Git) now map to the same ToolJet account.

Containment

  1. Immediately suspend or lock the affected ToolJet account(s) and invalidate all active sessions and refresh tokens for those users.
  2. Disable email-based automatic account linking in the ToolJet SSO configuration (or disable OAuth SSO entirely) until the server is upgraded to 3.21.94-beta or later.
  3. Force a password reset and re-verification of SSO linkage for any account where linking cannot be confirmed as user-initiated.

Evidence Collection

  1. Preserve ToolJet auth/application logs covering the SSO sign-in events, including provider, claimed email, verification status, source IP, and session identifiers.
  2. Export the account's audit trail (apps accessed, data sources viewed, workspace/role changes, API tokens created) during and after the suspicious SSO login.
  3. Capture the OAuth provider-side sign-in records (Google Workspace / GitHub audit logs) for the attacker-controlled identity to establish the external account used.

Escalation Criteria

  • ! Escalate to incident response if the linked account holds admin, workspace-owner, or data-source credentials, or if post-login activity shows access to sensitive data sources or secrets.
  • ! Escalate if multiple accounts show the same email-linking pattern within a short window, indicating active, scripted exploitation rather than a one-off.
  • ! Escalate to the application/platform owner to prioritize an emergency upgrade if the ToolJet instance is internet-facing and running a vulnerable version.

Investigation Guide

Forensic Artifacts

  • > ToolJet auth logs showing SSO sign-in events with provider, claimed email, and account_preexisting/existing_auth_source fields.
  • > Database records in ToolJet's users/sso_configs tables showing when an SSO identity was linked to a pre-existing local account.
  • > Session and refresh-token issuance records for the affected account, with source IP and user-agent.
  • > OAuth provider audit logs (Google Workspace / GitHub) for the external identity used to authenticate.

Tuning Guidance

Baseline normal SSO adoption for your ToolJet tenant first: if you recently enabled Google/Git SSO, expect a burst of legitimate first-time linkings and whitelist that window. Enrich events with the provider's email-verified flag so you can suppress logins where the provider actually verified the email and the source IP matches the user's baseline. Focus alerting on links onto accounts whose original auth source was a local password, on new-geo/new-ASN sign-ins, and on accounts holding admin or data-source privileges. Once the server is upgraded to 3.21.94-beta+, demote severity to informational since linking behavior is expected to be corrected.


Hunting Queries

Surfaces ToolJet accounts that have multiple distinct SSO providers or an unusually high number of SSO sign-ins mapped to one email, indicating possible abusive account linking.

Hunting — KQL
kql
// df00tech DF00-77991af6b8 · https://df00tech.com/detections/CVE-2026-137536 · licence: https://df00tech.com/detections/licence
ToolJet_CL | where event_s has "sso_login" | extend Email=tolower(tostring(column_ifexists("email_s",""))) | summarize Providers=make_set(provider_s), IPs=make_set(src_ip_s), n=count() by Email | where array_length(Providers) > 1 or n > 5
Hunting — SPL
spl
``` df00tech DF00-77991af6b8 · https://df00tech.com/detections/CVE-2026-137536 · licence: https://df00tech.com/detections/licence ```
index=tooljet event="sso_login" | eval email=lower(email) | stats values(provider) as providers dc(provider) as dp values(src_ip) as ips count by email | where dp>1 OR count>5

Atomic Red Team Tests

Test 1 SSO account linking onto pre-existing local account (lab)
linux

Simulate the CVE-2026-137536 primitive by signing into a vulnerable ToolJet instance via Google/Git SSO using an identity whose email matches an existing local-password account, forcing a link.

Command

bash
curl -s -X GET "https://tooljet.lab.local/api/oauth/sign-in/google?code=TEST_AUTH_CODE" -H "Content-Type: application/json" --data '{"email":"[email protected]"}'

Cleanup

bash
curl -s -X DELETE "https://tooljet.lab.local/api/users/[email protected]/sso-link" -H "Authorization: Bearer $ADMIN_TOKEN"

Expected Telemetry

ToolJet auth log entry event=sso_login provider=google [email protected] account_preexisting=true existing_auth_source=local

Expected Detection

KQL/SPL rule fires on the SSO sign-in linking a Google identity onto a pre-existing local-password account.

Test 2 Git SSO login with colliding email
linux

Authenticate to the lab ToolJet instance via Git(Hub) SSO using an attacker-controlled account whose email collides with a target ToolJet user.

Command

bash
curl -s -X GET "https://tooljet.lab.local/api/oauth/sign-in/git?code=TEST_GIT_CODE" -H "X-Forwarded-For: 203.0.113.77" --data '{"email":"[email protected]"}'

Cleanup

bash
curl -s -X DELETE "https://tooljet.lab.local/api/users/[email protected]/sso-link" -H "Authorization: Bearer $ADMIN_TOKEN"

Expected Telemetry

ToolJet auth log entry event=sso_login provider=git [email protected] src_ip=203.0.113.77 account_preexisting=true

Expected Detection

Rule fires on Git SSO sign-in linking onto a pre-existing account; anomalous source IP enriches the alert.

Test 3 Rapid multi-provider linking to a single account
linux

Link both Google and Git SSO identities to the same ToolJet account in quick succession to exercise the multi-provider hunting query.

Command

bash
for p in google git; do curl -s -X GET "https://tooljet.lab.local/api/oauth/sign-in/$p?code=TEST_$p" --data '{"email":"[email protected]"}'; done

Cleanup

bash
curl -s -X DELETE "https://tooljet.lab.local/api/users/[email protected]/sso-link?all=true" -H "Authorization: Bearer $ADMIN_TOKEN"

Expected Telemetry

Two ToolJet sso_login events for [email protected] with provider=google and provider=git within seconds

Expected Detection

Hunting query surfaces the account as having multiple distinct SSO providers mapped to one email.

Related Detections

Blog posts about this detection

Browse by tactic

Full ATT&CK matrix Search all detections