CVE-2026-137526 in ToolJet
Summary
by MITRE • 11/26/2026
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.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/26/2026
The vulnerability identified in ToolJet versions prior to 3.21.96-LTS represents a critical authorization bypass within the internal database proxy mechanism known as TJDB PostgREST. This flaw stems from an insufficiently restrictive access control model that fails to validate whether authenticated users possess specific permissions for the targeted resources before granting them proxied access. The core technical issue lies in how the system derives database roles and schema contexts; rather than enforcing strict isolation based on user identity or explicit role assignments, the application relies heavily on a client-supplied header named tj-workspace-id. This design choice allows any authenticated workspace member to manipulate this header value during API requests directed at /api/tooljet-db/proxy/<tableId>. By supplying arbitrary values for this identifier, an attacker can effectively impersonate different database contexts or bypass intended segmentation boundaries that are supposed to restrict access based on app, query, and table-level permissions.
From a technical perspective, the vulnerability exploits the trust placed in client-supplied metadata without adequate server-side validation against authorized resource mappings. When a user sends a request to the proxy endpoint, the backend processes the tj-workspace-id header to determine which database schema or role should be used for executing SQL queries. Because this determination is not strictly bound to the authenticated session's actual permissions, an attacker can traverse across logical boundaries that are meant to remain isolated. This mechanism effectively neutralizes the security controls designed to limit data visibility and mutability within multi-tenant environments. The flaw aligns with CWE-284 Improper Access Control, specifically reflecting scenarios where access control decisions rely on untrusted input or fail to enforce proper authorization checks before granting resource access.
The operational impact of this vulnerability is severe, particularly in cloud deployments where SQL mode is disabled and tenant isolation is paramount. An authenticated attacker who is a member of any workspace can exploit this flaw to read sensitive data from TJDB tables belonging to other users or even across different tenants entirely. Beyond mere data exfiltration, the ability to modify these tables allows for unauthorized updates, deletions, or insertions of records, leading to potential data integrity compromise and business logic manipulation. In multi-tenant SaaS architectures, this constitutes a critical breach of tenant isolation, potentially exposing proprietary information, customer data, or internal operational metrics from unrelated organizations sharing the same infrastructure. This scenario is consistent with ATT&CK technique T1078 Valid Accounts, as it leverages legitimate credentials to perform unauthorized actions that exceed their intended privileges.
Mitigation strategies must prioritize immediate patching and architectural review. The primary remediation step is upgrading ToolJet to version 3.21.96-LTS or later, where the vendor has addressed this authorization bypass by implementing stricter validation of workspace identifiers against user permissions. In environments where an upgrade is not immediately feasible, administrators should consider network-level restrictions that limit access to the PostgREST proxy endpoints only from trusted internal services rather than exposing them directly to end-user applications if possible. Additionally, enforcing strict input validation on all headers and ensuring that database role derivation occurs server-side based on verified session attributes rather than client-supplied values is essential for long-term security posture improvement. Regular auditing of access control logs can also help detect attempts to exploit this vector by monitoring for unusual patterns in workspace ID usage or unauthorized table access attempts.