CVE-2026-137517 in ToolJet
Summary
by MITRE • 11/26/2026
ToolJet from 3.8.0 before 3.21.96-LTS contains an authorization bypass vulnerability that allows authenticated builders to modify queries in view-only apps by supplying cross-app query IDs. Attackers can send PATCH requests to /api/data-queries/versions/:versionId naming an editable app version with another app's query ID, then run the overwritten query using that app's data source connection.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
ToolJet versions prior to 3.21.96-LTS contain a critical authorization bypass vulnerability within its application builder interface. This flaw specifically affects authenticated users who possess Builder-level permissions, allowing them to manipulate queries in applications designated as view-only. The core technical issue stems from insufficient server-side validation when handling PATCH requests directed at the /api/data-queries/versions/:versionId endpoint. Instead of strictly enforcing that the query ID provided in the request body belongs exclusively to the application version being edited, the system fails to verify ownership or cross-application boundaries effectively. This oversight permits an attacker to supply a query identifier belonging to a different application within the same ToolJet instance.
The operational impact of this vulnerability is significant as it enables unauthorized data access and potential manipulation across distinct applications. By exploiting this flaw, an authenticated builder can overwrite queries in view-only apps with those from other editable apps. Once the malicious patch request is processed, the attacker can execute the overwritten query using the target application's specific database connection credentials or API keys. This effectively grants the attacker indirect access to sensitive data sources associated with applications they should not have permission to interact with directly. The vulnerability essentially breaks the isolation model between different projects and users within a multi-tenant environment, leading to potential data leakage, integrity compromise, and unauthorized administrative actions depending on the privileges of the compromised query execution context.
From a classification perspective, this issue aligns closely with CWE-269 Improper Privilege Management and CWE-862 Missing Authorization. The failure lies in the application's inability to properly enforce access control policies when processing API requests that modify resource states across different logical boundaries. In terms of offensive security frameworks such as MITRE ATT&CK, this behavior corresponds to techniques involving Account Manipulation or Data Staged for Exfiltration if the attacker uses the compromised connection to gather sensitive information from connected databases. The vulnerability highlights a common pitfall in web application development where API endpoints rely on client-supplied identifiers without rigorous server-side ownership verification against session context and resource metadata.
Mitigation strategies must focus on immediate patching and enhanced access control validation. Organizations running ToolJet should upgrade immediately to version 3.21.96-LTS or later, which addresses this authorization bypass by implementing strict checks that ensure query IDs match the owning application of the target app version. In addition to upgrading, administrators should enforce least-privilege principles for Builder roles and regularly audit API endpoint configurations to ensure they validate resource ownership against user permissions before processing state changes. Implementing robust input validation on all PATCH requests involving cross-resource identifiers is essential to prevent similar bypasses in other parts of the application stack.