HIGH 7.1

CVE-2026-48759: TypeBot IDOR Vulnerability in Theme Template Access (v3.15.2 & Below)

TypeBot, a chatbot builder platform, contains an authorization flaw in versions 3.15.2 and earlier that allows authenticated users to modify or delete theme templates belonging to workspaces they don't have access to. The vulnerability stems from incomplete permission checks: while the application verifies that a user belongs to a workspace before processing a request, the underlying database queries fail to confirm the user has authority over the specific theme template being modified or deleted. An attacker with any TypeBot account can exploit this to tamper with or destroy another organization's chatbot themes, potentially disrupting service availability and integrity.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.1 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
Weaknesses (CWE)
CWE-639
Affected products
0 configuration(s)
Published / Modified
2026-06-17 / 2026-06-22

NVD description (verbatim)

TypeBot is a chatbot builder tool. Versions 3.15.2 and below have an Insecure Direct Object Reference vulnerability through cross-workspace Theme Template modification and deletion. The handleSaveThemeTemplate and handleDeleteThemeTemplate handlers validate that the authenticated user is a non-guest member of the provided workspaceId, but then operate on themeTemplateId via Prisma queries that do NOT include workspaceId in the WHERE clause. This allows any authenticated user to modify or delete theme templates belonging to any other workspace and may expose Template IDs via shared typebots or network traffic. This issue has been fixed in version 3.16.0.

2 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-48759 is an Insecure Direct Object Reference (IDOR) vulnerability affecting TypeBot versions 3.15.2 and below. The vulnerable code paths are in the handleSaveThemeTemplate and handleDeleteThemeTemplate handlers. During request processing, the application correctly validates that the authenticated user holds a non-guest role within the specified workspaceId. However, the subsequent Prisma ORM queries that retrieve and modify theme templates omit workspaceId from their WHERE clauses, creating a direct object reference vulnerability. This allows any authenticated user to operate on themeTemplateId values from arbitrary workspaces. Template IDs may also be exposed through shared typebots or network observation, enabling reconnaissance. The vulnerability was resolved in version 3.16.0 by adding proper workspace scoping to the database queries.

Business impact

An attacker exploiting this flaw can corrupt or destroy theme templates across other organizations' TypeBot instances without authorization. This translates to service disruption for end users of affected chatbots, potential reputational damage, and loss of design work. Multi-tenant TypeBot deployments face heightened risk if customers share template IDs through integrations or public links. Attackers could also use template modification as a pivot point to inject malicious content into chatbot conversations, indirectly affecting downstream users or customers interacting with compromised bots.

Affected systems

TypeBot versions 3.15.2 and earlier are vulnerable. The vulnerability applies to any deployment where multiple workspaces exist and users are authenticated. Self-hosted TypeBot instances and cloud-hosted SaaS deployments are equally affected. Upgrading to version 3.16.0 or later resolves the issue.

Exploitability

This vulnerability requires only basic authentication—an attacker needs valid TypeBot credentials but need not be a member of the target workspace. No additional complexity is introduced by network position (directly internet-accessible), user interaction, or privilege escalation; the attack is straightforward once an authenticated session is established. Template IDs can be discovered through shared typebots, publicly visible configurations, or enumeration. The CVSS score of 7.1 (HIGH) reflects the combination of low attack complexity and high integrity impact, though confidentiality remains unaffected and availability is only partially impacted (specific templates, not the entire service).

Remediation

Upgrade TypeBot to version 3.16.0 or later. Organizations running 3.15.2 or below should prioritize this update to prevent unauthorized template modification and deletion. If immediate patching is not feasible, implement network-level controls to restrict TypeBot API access to trusted internal networks or IP ranges, though this is not a substitute for patching.

Patch guidance

TypeBot version 3.16.0 contains the fix. Verify the version number in your deployment by checking the package metadata or admin interface. Apply the update through your standard deployment mechanism (package manager, container image pull, or manual binary replacement). Test the update in a staging environment first to confirm no custom integrations or workflows are disrupted. After patching, confirm that theme template operations are scoped correctly and cross-workspace access is blocked.

Detection guidance

Monitor for suspicious patterns in API access logs: repeated or unusual calls to /api/*/themes or /api/*/templates endpoints from a single user account targeting multiple workspaceIds in a short timeframe, especially followed by DELETE or PUT operations. Log all handleSaveThemeTemplate and handleDeleteThemeTemplate invocations with their workspaceId and themeTemplateId parameters; compare the workspace ownership of the template against the authenticated user's workspace membership. Implement alerting for any template modification or deletion originating from a user not explicitly assigned to that workspace. If you have TypeBot application logs, search for template operations with mismatched workspace contexts.

Why prioritize this

This vulnerability merits urgent attention because it enables any authenticated user to sabotage or alter core design assets of other organizations within a multi-tenant environment. The attack requires no privilege escalation, no social engineering, and minimal reconnaissance. While the CVSS score is 7.1, the relative ease of exploitation and the direct business impact on service integrity push this toward immediate remediation priority. Organizations with multiple customer workspaces or internal teams using shared TypeBot instances face the highest risk.

Risk score, explained

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/I:H/A:L yields a score of 7.1 (HIGH). Attack Vector is Network (AV:N) because the application is internet-accessible. Attack Complexity is Low (AC:L)—no special conditions or race conditions are required. Privileges Required is Low (PR:L)—any authenticated user qualifies. User Interaction is None (UI:N). Scope is Unchanged (S:U) because the impact is confined to TypeBot resources. Integrity Impact is High (I:H) due to unrestricted modification or deletion of theme templates. Availability Impact is Low (A:L) because while individual templates can be destroyed, the overall service remains operational. Confidentiality remains None (C:N) as the vulnerability does not leak sensitive data beyond what might already be observable.

Frequently asked questions

Can an unauthenticated attacker exploit this?

No. The vulnerability requires a valid TypeBot account and an authenticated session. However, obtaining such credentials is a low bar—many TypeBot deployments allow self-registration or use shared demo accounts.

Does this vulnerability allow me to read other workspaces' data?

Not directly. The IDOR flaw permits modification and deletion of theme templates. Template IDs may be inferred from shared typebots or network traffic, but the vulnerability itself does not enable reading arbitrary data from other workspaces.

What should we do if we cannot patch immediately?

Apply network segmentation to restrict TypeBot API access to trusted IP ranges or internal networks. Implement strict role-based access control (RBAC) policies within TypeBot if available, and monitor access logs for suspicious cross-workspace template operations. Plan and schedule an urgent upgrade to 3.16.0.

How do I confirm my TypeBot installation is patched?

Check your deployment's version number through the admin dashboard or package management system. Verify it reports 3.16.0 or later. You can also review the package.json or release notes for your installed build to confirm the patch version.

This analysis is based on the CVE description and CVSS vector provided as of the publication date (2026-06-17). Exploit code or step-by-step proof-of-concept instructions are not included in this document. Organizations should verify all patch versions, remediation steps, and detection signatures against the official TypeBot vendor advisory and their own environment before deployment. SEC.co assumes no liability for losses arising from security misconfigurations or delayed patching. Always test security updates in a non-production environment first. Source: NVD (public-domain), retrieved 2026-07-27. Analysis generated by SEC.co (claude-haiku-4-5).