Detect ToolJet OAuth SSO Authentication Bypass via Email-Based Account Linking (CVE-2026-137536) in IBM QRadar
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
MITRE ATT&CK
QRadar Detection Query
-- df00tech DF00-77991af6b8 · https://df00tech.com/detections/CVE-2026-137536 · licence: https://df00tech.com/detections/licence
SELECT "email" AS email, "provider" AS provider, "src_ip" AS src_ip, DATEFORMAT(deviceTime,'YYYY-MM-dd HH:mm:ss') AS event_time, COUNT(*) AS cnt
FROM events
WHERE LOGSOURCETYPENAME(devicetype) = 'ToolJet'
AND "event" IN ('sso_login','oauth_signin','sso_sign_in')
AND LOWER("provider") IN ('google','git','github','gitlab')
AND LOWER("account_preexisting") = 'true'
AND LOWER("existing_auth_source") IN ('local','password','')
GROUP BY email, provider, src_ip
LAST 14 DAYS QRadar AQL selecting ToolJet SSO sign-ins that link onto pre-existing local-password accounts.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate first-time SSO linking.
- Bulk SSO onboarding campaigns.
- Non-production/test account activity.
Other platforms for CVE-2026-137536
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.
- 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
- 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
- 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
- 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.
- 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.
- 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).
- 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
- Immediately suspend or lock the affected ToolJet account(s) and invalidate all active sessions and refresh tokens for those users.
- 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.
- Force a password reset and re-verification of SSO linkage for any account where linking cannot be confirmed as user-initiated.
Evidence Collection
- Preserve ToolJet auth/application logs covering the SSO sign-in events, including provider, claimed email, verification status, source IP, and session identifiers.
- Export the account's audit trail (apps accessed, data sources viewed, workspace/role changes, API tokens created) during and after the suspicious SSO login.
- 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.
// 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 ``` 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
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
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
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.
Authenticate to the lab ToolJet instance via Git(Hub) SSO using an attacker-controlled account whose email collides with a target ToolJet user.
Command
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
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.
Link both Google and Git SSO identities to the same ToolJet account in quick succession to exercise the multi-provider hunting query.
Command
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
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.