CVE-2026-137526: ToolJet before 3.21.96-LTS Authorization Bypass via TJDB PostgREST Proxy
ToolJet before 3.21.96-LTS contains an authorization bypass in the internal database (TJDB) PostgREST proxy, which grants proxy access to every logged-in user and derives the database role and schema from the client-supplied tj-workspace-id header. Any authenticated workspace member can send requests to /api/tooljet-db/proxy/<tableId> to read and modify TJDB tables, bypassing app, query, and table permissions, and in SQL-mode-disabled (Cloud) deployments can access all tenants' tables.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.21.96-LTS
Event History
Frequently Asked Questions
Who can exploit this issue?
Any authenticated ToolJet workspace member can exploit it. No elevated application, query, or table permissions are required.
What access does an attacker need to exploit it?
The attacker needs a valid logged-in account and the ability to send requests to the /api/tooljet-db/proxy/<tableId> endpoint. They can supply a tj-workspace-id header that influences the database role and schema used by the proxy.
Are Cloud deployments exposed beyond their own tenant data?
Yes. In deployments with SQL mode disabled, including Cloud deployments as described, an authenticated user can access TJDB tables belonging to all tenants.
What data and actions are at risk?
An attacker can read and modify TJDB tables through the proxy, bypassing application-level, query-level, and table-level permissions.