CVE-2026-39968: TypeBot: Cross-Workspace Credential Theft via Bot-Engine Preview Endpoint
TypeBot is a chatbot builder tool. In versions 3.15.2 and prior, the fix for GHSA-4xc5-wfwc-jw47 ("Credential Theft via Client-Side Script Execution and API Authorization Bypass") is incomplete. While the builder's getCredentials tRPC endpoint was patched with workspace membership checks, the bot-engine runtime still allows any authenticated user to use credentials from any workspace via the preview chat endpoint. The bot-engine's getCredentials() utility function uses a falsy check (if (workspaceId && ...)) for workspace ownership validation. Since the preview endpoint accepts a client-controlled workspaceId field and the Zod schema allows empty strings, an attacker can supply workspaceId: "" to bypass credential ownership verification entirely. Exploitation can result in credential exfiltration, external service abuse, financial damage and a data breach.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
TypeBot (bot-engine)to a version that resolves this vulnerability.Fixed in 3.15.2Patch GHSA-4xc5-wfwc-jw47 - Compensating control
Restrict access to the bot-engine preview chat endpoint (the preview endpoint that accepts client-controlled workspaceId) to only authorized users/workspaces until the incomplete GHSA-4xc5-wfwc-jw47 fix is fully applied.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-39968?
CVE-2026-39968 has a high severity rating of 7.1.
How do I fix CVE-2026-39968?
To fix CVE-2026-39968, upgrade to TypeBot version 3.16.0 or later.
What type of vulnerability is CVE-2026-39968?
CVE-2026-39968 is a Cross-Workspace Credential Theft vulnerability.
What versions of TypeBot are affected by CVE-2026-39968?
TypeBot versions 3.15.2 and prior are affected by CVE-2026-39968.
What can an attacker achieve with CVE-2026-39968?
An attacker exploiting CVE-2026-39968 can potentially steal credentials from workspaces.