/

CVE-2026-65013

Severity:

HIGH RISK

(8.8)

Broken Object-Level Authorization (CWE-639) in Onlook

CVE-2026-65013

Deferred

Vulnerability type

Category:

Broken Object-Level Authorization

CWE:

CWE-639

Impact:

Horizontal and Vertical Authorization Bypass

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Onlook through version 0.2.32 contains a broken object-level authorization flaw in several tRPC API procedures, allowing authenticated users to act on resources they do not own by supplying arbitrary UUIDs.

When project or conversation identifiers are not properly checked against the caller's permissions, an attacker can read, modify, or delete other users' projects, members, and conversation history.

Affected context

This vulnerability appears in Onlook deployments that expose tRPC API procedures such as project.get, member.remove, and chat.conversation.delete to authenticated users.

The issue arises when the backend accepts client-supplied projectId or conversationId values as trustworthy and does not consistently verify that these resources belong to, or are shared with, the requesting user.

Any environment where user-to-resource relationships are enforced only by authentication rather than explicit authorization checks will be susceptible to this broken object-level access control.

Exploit preconditions

  • Attack surface: Application API layer exposed via tRPC endpoints (project.get, member.remove, chat.conversation.delete)
  • Required access: Valid authenticated account in the Onlook instance
  • Trigger point: Supplying arbitrary projectId or conversationId UUIDs in API calls targeting resources owned by other users or teams
  • Why exploitation is possible: The server-side logic authorizes actions based solely on user authentication and the presence of an object identifier, without verifying resource ownership or permission relationships for each requested object

Why this happens

The root cause aligns with CWE-639: Authorization Bypass Through User-Controlled Key, where the application relies on client-supplied identifiers (such as projectId and conversationId) to locate resources but does not enforce object-level authorization.

Instead of deriving or validating accessible resources based on the authenticated user's context, the API trusts any well-formed UUID, allowing direct access to objects belonging to other accounts.

This pattern breaks isolation between tenants or users, turning predictable or discoverable identifiers into a means of cross-account data access and manipulation.

Potential impact

  • Attackers may read other users' project metadata, configurations, and associated content.
  • Attackers may remove members from projects they do not control, disrupting collaboration and governance.
  • Attackers may delete or alter conversation history for other users or teams, causing data loss and integrity issues.
  • Attackers may pivot across multiple projects or workspaces, effectively enumerating and tampering with resources across the deployment.

General mitigation guidance

Effective mitigation centers on enforcing per-object authorization checks on every API that accepts a user-controlled identifier.

Typical defensive patterns include:

  • Resolving accessible resource identifiers server-side from the authenticated user's session or role, rather than trusting client-supplied IDs.
  • Implementing a consistent authorization layer that verifies ownership or membership before allowing operations on projectId, conversationId, or similar keys.
  • Using access control rules that encode relationships (user-to-project, member-to-conversation) and fail closed when no explicit permission exists.
  • Applying least-privilege principles for authenticated users, limiting the default scope of actions to resources they directly own or are explicitly granted access to.
  • Centralizing authorization logic instead of duplicating checks across handlers, reducing the chance of missed validations in new tRPC procedures.

How teams detect issues like this

Detection can focus on both code-level review and runtime monitoring:

  • Static analysis and code review: Look for endpoints that accept resource IDs from clients and directly query or mutate database records without subsequent ownership or permission checks.
  • Authorization policy enforcement: Define and enforce patterns such as "every operation on projectId must call a shared authorization helper" and flag deviations in CI.
  • Logging and anomaly detection: Instrument logs to capture access patterns where a single user touches many distinct project or conversation IDs, particularly those outside their usual scope.
  • Automated testing: Add integration tests that simulate cross-user access attempts (e.g., user A trying to operate on user B's project) and ensure they consistently fail.

Sources

SourceLink
github.comgithub.com/onlook-dev/onlook/commit/423e2e924366419e418ee049093872d535eea41a
github.comgithub.com/onlook-dev/onlook/issues/3122
github.comgithub.com/onlook-dev/onlook/pull/3129
vulncheck.comvulncheck.com/advisories/onlook-trpc-insecure-direct-object-reference-via-multiple-procedures

Frequently asked

questions

Any authenticated user with access to the affected tRPC endpoints could potentially exploit this issue, provided they can guess or obtain valid projectId or conversationId values for other users' resources.

No special roles are strictly required; a normal authenticated account is sufficient if the API does not verify ownership or membership before acting on the supplied identifiers.

Introduce a centralized authorization layer that, for every API dealing with user-controlled resource IDs, confirms the requested object belongs to or is shared with the authenticated user and fails closed when that relationship is absent.

Avoid trusting client-supplied identifiers without server-side validation, enforce uniform authorization checks through shared helpers or middleware, and incorporate authorization-focused tests and code review checklists for all new endpoints.

Find out what's already
exploitable in your codebase.