CVE-2026-137968 in ToolJet
Summary
by MITRE • 11/27/2026
ToolJet before 3.21.96-LTS contains a server-side request forgery vulnerability in the OAuth token exchange for custom datasources, which sends requests to an unvalidated, user-configured access_token_url. Authenticated users can trigger the authorize_oauth2 endpoint to reach loopback, cloud metadata, or private network services, with internal response bodies reflected in some API error responses.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/27/2026
ToolJet versions prior to 3.21.96-LTS are affected by a critical server-side request forgery vulnerability within the OAuth token exchange mechanism for custom datasources. This flaw stems from the application's failure to validate or restrict the destination of requests sent during the authentication flow, specifically targeting an unvalidated user-configured access_token_url parameter. In standard secure implementations, such endpoints must enforce strict allowlists or canonicalization checks to prevent attackers from redirecting internal server-side operations to arbitrary external destinations. The absence of these controls allows authenticated users to manipulate the OAuth2 token exchange process by supplying malicious URLs that point to loopback interfaces, cloud metadata services, or private network resources inaccessible from the public internet.
The operational impact of this vulnerability is significant because it enables an attacker with valid credentials to leverage ToolJet as a proxy for internal reconnaissance and data exfiltration. By triggering the authorize_oauth2 endpoint with a crafted access_token_url pointing to local service endpoints such as 127.0.0.1 or localhost, attackers can interact with services running on the host machine itself. Furthermore, targeting cloud metadata URLs allows adversaries to retrieve sensitive instance credentials, IAM roles, and configuration data from popular cloud providers like AWS, Azure, or GCP. The situation is exacerbated by the fact that internal response bodies are reflected in certain API error responses generated by ToolJet. This reflection mechanism effectively turns the vulnerability into a blind SSRF with out-of-band data retrieval capabilities, allowing attackers to read sensitive information returned by internal services without needing direct network access to those resources.
From a classification perspective, this issue aligns closely with CWE-918 Server-Side Request Forgery and specifically relates to CWE-643 Improper Mitigation of XSSI within the context of OAuth flows where user-controlled input dictates server behavior. In terms of attack tactics, this vulnerability facilitates techniques documented in the MITRE ATT&CK framework under T1557 Adversary-in-the-Middle for intercepting or manipulating communications between internal services and potentially T1046 Network Service Discovery if used to map out internal network structures. The ability to reflect internal responses also touches upon information disclosure principles, making it a high-severity issue that compromises the integrity of the application's security boundary by allowing authenticated users to pivot into protected network segments.
Mitigation strategies must prioritize immediate patching to version 3.21.96-LTS or later where this validation logic has been corrected. For environments unable to upgrade immediately, implementing a web application firewall rule set that blocks outbound requests from the ToolJet server IP address to private RFC-1918 ranges and cloud metadata endpoints can provide temporary relief. Additionally, developers should enforce strict allowlisting of permitted OAuth provider domains within the custom datasource configuration rather than accepting arbitrary URLs. Input validation must ensure that any user-supplied URL is parsed and checked against a whitelist of trusted identities before being used in server-side HTTP requests. Regular security audits focusing on SSRF vectors in authentication modules are essential to prevent similar misconfigurations in other parts of the application stack.