Typebot's Cross-Workspace Webhook ID: When an Object Reference Outlives Its Authorization Check
Typebot's Cross-Workspace Webhook ID: When an Object Reference Outlives Its Authorization Check
A webhook ID looks like a convenience field. In a multi-tenant builder, it is also a reference to a secret-bearing integration. CVE-2026-138031 affected Typebot from 2.14.0 before 3.19.0 because an authenticated bot author could save another workspace's legacy webhookId in an HTTP request block.
What the ID reached
According to the CVE record, the foreign reference could make executeHttpRequestBlock return the victim's webhook URL, headers, and body to the client. Another path, handleSubscribeHttpRequest, could overwrite the victim's webhook URL and redirect its data. The issue is classified as an authorization bypass through a user-controlled key.
The attacker needed an authenticated bot-author role, so this was not a pre-authentication compromise. That distinction limits the population of potential attackers but does not make the cross-tenant result acceptable. A user in one workspace could reach configuration and data belonging to another workspace by supplying an identifier the server should have scoped to the caller.
Tenant scope is not a database join detail
A safe lookup answers more than whether the referenced row exists. It answers whether the active principal is allowed to use that row in this operation. If a webhook lookup returns a record by ID before checking workspace ownership, later code can easily treat the returned object as legitimate.
That pattern is common in integrations because builders need to preview requests and subscribe to callbacks. The authorization check must run at each transition: load, display, save, execute, and update. Returning a webhook preview is a disclosure path, and changing its destination is an integrity path. They need separate policy decisions even when both are reached through the same object.
Impact
The CVE lists CVSS 4.0 at 7.6 and CVSS 3.1 at 6.8. The score reflects high confidentiality and integrity impact from a low-privilege network identity. Webhook headers may contain authentication material, and the body may contain customer or workflow data. Changing a URL can silently redirect future automation.
Workspace isolation should not rely on the browser to hide foreign IDs. IDs are user input. Random identifiers reduce guessing but do not repair an authorization check.
Remediation
Upgrade to Typebot 3.19.0 or later. Audit stored HTTP request blocks for webhook references whose workspace does not match the block owner. Rotate webhook secrets if a foreign reference may have exposed headers, and review callback destinations for unexpected changes.
Instrument authorization failures with the principal, workspace, object type, object ID, and requested action. Avoid logging the secret header or body values. A denied preview should not reveal whether a foreign ID exists, because existence probing can help an attacker map other tenants.
Tests worth running
Create a webhook in workspace A and a bot in workspace B. Attempt to preview, save, execute, and update the workspace A webhook from workspace B. Every path should fail before returning configuration or sending a request. Repeat with a user who belongs to both workspaces and confirm that the operation uses the currently selected workspace rather than the user's broad membership.
The CVE does not claim that every Typebot installation was exploited. It does show that tenant authorization must cover indirect object references throughout a workflow. That work continues after the version upgrade.