CVE-2026-137968: ToolJet before 3.21.96-LTS SSRF via OAuth access_token_url Token Exchange
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 accesstokenurl. Authenticated users can trigger the authorizeoauth2 endpoint to reach loopback, cloud metadata, or private network services, with internal response bodies reflected in some API error responses.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.21.96-LTS
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated user with permission to configure or use a custom datasource OAuth flow can trigger the vulnerable authorize_oauth2 endpoint. The attacker must be able to supply or control the datasource access_token_url.
Are default OAuth configurations affected?
The issue is tied to user-configured access_token_url values for custom datasources. The provided information does not establish that any particular default OAuth configuration is affected.
What systems could be reached through the vulnerable request?
An attacker can direct the server to loopback services, cloud metadata endpoints, or services on private networks that are reachable from the ToolJet server. Some internal response bodies may be exposed through API error responses.
What can be done before upgrading?
Restrict access to authenticated users who can configure or invoke custom datasource OAuth flows, and prevent untrusted users from controlling access_token_url values. Apply network egress controls so the ToolJet server cannot reach loopback, cloud metadata, or unnecessary private-network destinations.
How can administrators identify possible exposure?
Review custom datasource OAuth configurations for access_token_url values pointing to loopback addresses, cloud metadata services, or private internal hosts. Also examine requests to the authorize_oauth2 endpoint and associated API errors for unexpected internal destinations or reflected response content.