CVE-2026-137531 in ToolJet
Summary
by MITRE • 11/26/2026
ToolJet before 3.21.96-LTS contains an authorization bypass vulnerability that allows view-only workspace users to execute queries in restricted environments by supplying an arbitrary environmentId. Attackers can call the data-queries run endpoint for draft app versions to execute queries with stored datasource credentials, exposing development or staging data.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
ToolJet prior to version 3.21.96-LTS is affected by a critical authorization bypass vulnerability that undermines the intended access control mechanisms within the application's workspace management system. This flaw specifically impacts users who are assigned view-only permissions, a role designed strictly for observation and analysis without the ability to modify or execute actions on data sources. The core technical deficiency lies in how the backend API validates environment identifiers against user roles during query execution requests. Instead of performing a strict check that ensures the requesting user has explicit write or execute privileges for the specific workspace associated with the provided environmentId, the system relies on insufficient validation logic. This allows an attacker to supply an arbitrary environment identifier belonging to a different workspace where they possess elevated permissions, such as editor or admin rights, while maintaining their view-only status in the target restricted environment.
The operational impact of this vulnerability is severe because it enables unauthorized data exfiltration and potential system compromise through stored credentials. By exploiting this flaw, attackers can invoke the data-queries run endpoint for draft application versions within these restricted environments. Since ToolJet applications often utilize pre-configured datasource connections that store sensitive authentication details such as database passwords or API keys in plaintext or encrypted formats accessible to the runtime environment, executing queries via this bypass grants access to those credentials indirectly. Consequently, attackers can retrieve sensitive development or staging data that should remain isolated from view-only personnel. This exposure not only violates confidentiality requirements but also poses significant risks if the exposed data contains intellectual property, personal identifiable information, or further authentication tokens for downstream systems.
From a classification perspective, this vulnerability aligns with CWE-285 Improper Authorization and CWE-639 Authorization Bypass Through User-Controlled Key. The failure to properly associate the user's session permissions with the resource identifier provided in the request body represents a classic logic flaw where input validation is incomplete. In terms of offensive security frameworks, this technique corresponds to ATT&CK T1078 Valid Accounts and potentially T1539 Steal Web Session Cookie if combined with other initial access vectors, although here it primarily facilitates unauthorized data access through misconfigured role-based access control boundaries. The exploitation does not require complex binary manipulation or memory corruption but rather a straightforward HTTP request modification where the attacker manipulates the environmentId parameter to point toward resources they are otherwise prohibited from accessing.
Mitigation strategies must prioritize immediate patching and architectural review of authorization logic. Organizations running ToolJet should upgrade immediately to version 3.21.96-LTS or later, which contains the vendor's fix for this specific permission check. In addition to updating software, administrators should audit their workspace configurations to ensure that view-only users are not inadvertently granted access to sensitive data sources through shared environments. Implementing strict server-side validation that cross-references the user's role against every resource identifier in API requests is essential. Furthermore, adopting a principle of least privilege by segregating development and staging environments from production workspaces can limit the blast radius if such vulnerabilities exist elsewhere. Regular security assessments focusing on business logic flaws are recommended to identify similar authorization bypasses before they can be exploited for data theft or further system compromise.