CVE-2026-137535: ToolJet before 3.21.96-LTS Secret Disclosure via fetch-oauth2-base-url
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 sourceoptions and arbitrary organizationid and environmentid to receive secrets, including other workspaces' secrets, in the returned authorization URL.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated low-privilege ToolJet user can exploit it. The attack is network-accessible and does not require user interaction.
What does an attacker need to send to retrieve secrets?
The attacker must POST to /api/data-sources/fetch-oauth2-base-url with {{secrets.*}} in source_options. They can supply arbitrary organization_id and environment_id values, enabling access to secrets from other workspaces.
What information can be exposed?
Plaintext workspace secret constants can be recovered from the authorization URL returned by the endpoint. The disclosed secrets can include those belonging to other workspaces.
Which ToolJet versions are affected?
ToolJet versions before 3.21.96-LTS are affected.