/

CVE-2026-66027

Severity:

HIGH RISK

(8.3)

Broken Access Control (CWE-862) in Suna Queue API

CVE-2026-66027

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-862

Impact:

Cross-Account Data Access and Action Impersonation

Severity:

HIGH RISK

(8.3)

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

Suna before version 0.9.102 exposes a broken access control flaw in its message queue API, allowing authenticated users to access and manipulate queue resources owned by other accounts.

When ownership and isolation checks are missing, an attacker can read or delete other users' sessions and inject arbitrary prompts that the victim's AI agent will process under their credentials.

Affected context

This vulnerability occurs in Suna deployments that expose the message queue API to authenticated users without consistently enforcing per-user ownership and account isolation on queue and session resources.

It manifests where queue identifiers or session IDs are accepted and processed based solely on authentication, rather than being tied to the requesting user's account or a robust authorization model.

Environments with multi-tenant usage or shared infrastructure and a background drainer that forwards queued prompts to AI agents are particularly exposed to cross-account interaction.

Exploit preconditions

  • Attack surface: Message queue and session management API endpoints (e.g., queue listing, item read/delete, prompt enqueue).
  • Required access: Valid authenticated account in the Suna system; no elevated privileges are strictly required.
  • Trigger point: Supplying queue or session identifiers for resources belonging to another user to read, delete, or inject prompts.
  • Why exploitation is possible: The API authorizes actions based on authentication alone, failing to verify resource ownership or enforce tenant isolation, so cross-account requests are treated as legitimate.

Why this happens

The underlying issue is improper authorization on sensitive API operations, aligning with CWE-862: Missing Authorization.

Queue and session endpoints rely on the presence of a valid user session but do not verify that the requested resource actually belongs to the caller or resides within their tenant boundary.

This broken access control pattern often emerges when resource identifiers are assumed to be unguessable or trusted, and when business logic lacks explicit checks that correlate the requester's identity with the target resource's owner.

Potential impact

  • Attackers may read pending prompt queues of other users, exposing sensitive data and instructions.
  • Attackers could delete or tamper with individual sessions, disrupting AI agent workflows and causing data loss.
  • Attackers can inject arbitrary prompts into another user's session queue, influencing the victim's AI agent behavior and outputs.
  • Malicious prompts could cause the victim's AI agent to perform unauthorized actions using the victim's credentials and existing integrations.
  • Cross-tenant data leakage and integrity violations can undermine trust in the platform's multi-tenant isolation.

General mitigation guidance

Effective mitigation focuses on enforcing strict, explicit authorization for every queue and session operation.

Common defensive patterns include:

  • Implementing resource-level authorization checks that tie each queue and session to an owning user or tenant and validate that the caller matches this association.
  • Designing API routes and identifiers to be scoped per account or tenant, avoiding global identifiers that can be reused across users.
  • Applying a centralized authorization layer or policy engine that consistently evaluates permissions for create, read, update, and delete actions on queue resources.
  • Minimizing implicit trust in client-supplied identifiers by verifying them against server-side ownership metadata before performing operations.
  • Applying least-privilege principles so that authenticated accounts can only access queues and sessions they explicitly own or have been granted rights to.

How teams detect issues like this

Detection generally relies on a combination of design-time review and runtime monitoring:

  • Static analysis and architectural reviews to identify API endpoints that perform state-changing or data-reading operations without explicit ownership or permission checks.
  • Code review practices that flag any use of resource identifiers (IDs, tokens, queue names) where authorization is inferred from authentication alone.
  • Security testing and automated integration tests that simulate cross-account access attempts, verifying that requests from one user cannot read or modify another user's queues or sessions.
  • Logging and anomaly detection that track patterns of access to resources across different accounts, highlighting unexpected cross-tenant interactions.
  • Use of automated policy enforcement tools or authorization libraries that require explicit declaration of access control rules for each resource type.

Sources

SourceLink
github.comgithub.com/geo-chen/oss/blob/main/suna.md
github.comgithub.com/kortix-ai/suna/commit/7536a7d47fc93abcb66e677fcc993b390c81296a
github.comgithub.com/kortix-ai/suna/pull/4373
github.comgithub.com/kortix-ai/suna/releases/tag/v0.9.102
vulncheck.comvulncheck.com/advisories/suna-broken-access-control-via-message-queue-api

Frequently asked

questions

Any authenticated user of the affected Suna deployments could potentially exploit the flaw to access or manipulate queue resources belonging to other users, provided they can supply or discover valid resource identifiers.

The attacker only needs a normal authenticated account; administrative privileges are not required because the issue stems from missing authorization checks rather than privilege escalation.

Implement strict resource-level authorization checks on all queue and session operations, ensuring that each request is validated against server-side ownership or tenant metadata before being processed.

Adopt a centralized authorization model, enforce least-privilege by default, require explicit ownership checks in code review, and include cross-account access tests in security and QA pipelines so that broken access control patterns are caught early.

Find out what's already
exploitable in your codebase.