CVE-2026-137535 in ToolJet
Summary
by MITRE • 11/26/2026
ToolJet before 3.21.96-LTS contains an information disclosure vulnerability that allows authenticated low-privilege users to recover plaintext workspace secret constants through OAuth URL generation. Attackers can send POST /api/data-sources/fetch-oauth2-base-url with {{secrets.*}} in source_options and arbitrary organization_id and environment_id to receive secrets, including other workspaces' secrets, in the returned authorization URL.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
ToolJet versions prior to 3.21.96-LTS are affected by a critical information disclosure vulnerability that stems from improper validation of input parameters during OAuth integration workflows. This flaw specifically impacts authenticated users with low-privilege roles, allowing them to bypass intended access controls and extract sensitive configuration data. The core technical issue lies in the handling of workspace secret constants within the application's backend API endpoints responsible for generating OAuth authorization URLs. When a user initiates an OAuth connection setup, the system is designed to process specific source options and environment identifiers to construct the necessary redirect URIs. However, due to insufficient sanitization or template injection vulnerabilities in this processing logic, attackers can manipulate these inputs to trigger unintended behavior that exposes internal secrets rather than generating standard authentication links.
The exploitation mechanism involves sending a crafted POST request to the /api/data-sources/fetch-oauth2-base-url endpoint. By injecting {{secrets.*}} into the source_options parameter and providing arbitrary organization_id and environment_id values, an attacker can force the application to resolve these placeholders against its internal secret store. Instead of returning a standard OAuth base URL, the server processes the injection payload and includes the resolved plaintext secrets directly within the returned authorization URL or response body. This behavior effectively turns a routine authentication configuration step into a vector for data exfiltration. The vulnerability is particularly severe because it allows access to secrets belonging not only to the attacker's own workspace but potentially to other workspaces within the same organization, depending on how environment isolation is implemented and enforced in the specific deployment context.
From an operational impact perspective, this vulnerability compromises the confidentiality of sensitive credentials such as API keys, database passwords, or third-party service tokens that are stored as workspace secrets. These secrets are often used by applications built on ToolJet to interact with external services, meaning their exposure can lead to unauthorized access to downstream systems, data breaches, and potential compromise of entire organizational infrastructure. Since the attack requires only low-privilege authentication, it significantly lowers the barrier for exploitation compared to vulnerabilities requiring administrative privileges. An attacker who has gained initial foothold through phishing or credential stuffing could leverage this flaw to escalate their impact by harvesting credentials that provide access to more critical assets within the enterprise environment.
This vulnerability aligns with CWE-200: Information Exposure, as it involves the unintended leakage of sensitive information to unauthorized actors. It also maps to MITRE ATT&CK techniques related to Credential Access and Discovery, specifically T1539 which covers Steal Web Session Cookie or similar mechanisms for harvesting credentials from application configurations. The flaw represents a failure in input validation and secure coding practices regarding template engines or variable resolution systems that should strictly isolate user-supplied data from internal configuration contexts.
To mitigate this vulnerability, organizations running ToolJet must immediately upgrade to version 3.21.96-LTS or later where the issue has been addressed through stricter parameter validation and isolation of secret retrieval logic. In addition to patching, administrators should enforce strict role-based access control policies to ensure that only authorized personnel can configure OAuth integrations for critical data sources. It is also recommended to rotate any secrets that may have been exposed if an exploitation attempt is suspected or confirmed within the affected version range. Regular security audits of API endpoints and continuous monitoring for anomalous requests targeting configuration-related APIs can further reduce the risk of similar information disclosure incidents in future deployments.