/

CVE-2026-82284

Severity:

HIGH RISK

(8.1)

Broken Access Control (CWE-639) in Quivr Chat APIs

CVE-2026-82284

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-639

Impact:

Unauthorized Data Access and Cross-Account Chat Manipulation

Severity:

HIGH RISK

(8.1)

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

Quivr versions through 0.0.322 do not consistently verify that an authenticated user owns the chat identified by a request. An attacker with a valid account may read private conversation histories, delete other users' chats, or add fabricated messages to them by referencing chat identifiers they do not control.

Affected context

The vulnerability occurs in Quivr chat-management endpoints when authenticated requests identify chats by a user-controlled chat_id without reliably checking ownership. The affected operations include retrieving chat history, deleting chats, and submitting question answers. Risk is higher where chat identifiers can be discovered, guessed, leaked, or reused across accounts and where conversations contain private knowledge-base content.

Exploit preconditions

  • Attack surface: Authenticated HTTP API endpoints for chat history, deletion, and message submission
  • Required access: A valid Quivr user account or other permitted API authentication
  • Trigger point: A request to /chat/{chat_id}/history, /chat/{chat_id}, or /chat/{chat_id}/question/answer
  • Why exploitation is possible: The server may process a supplied chat identifier without confirming that the authenticated principal owns or is authorized to access the referenced chat

Why this happens

The underlying flaw is missing object-level authorization at the API boundary. The application accepts a chat identifier from an authenticated request but does not consistently bind the requested object to the current user or an explicitly authorized tenant. This behavior maps to CWE-639: Authorization Bypass Through User-Controlled Key, in which changing or supplying an object reference can expose or modify another user's resource.

Potential impact

  • Attackers may read private conversation histories and knowledge-base content
  • Attackers could delete chats belonging to other users
  • Attackers may inject misleading or fabricated messages into another user's conversation
  • Confidentiality, integrity, and user trust in chat records could be affected
  • Organizations could experience cross-account data exposure or workflow disruption

General mitigation guidance

Mitigation generally focuses on enforcing object-level authorization for every operation involving a user-controlled resource identifier.

Common defensive patterns include:

  • Applying server-side ownership or tenant checks before every read, update, delete, and message-creation operation
  • Deriving the effective user or tenant from the authenticated session rather than request parameters
  • Centralizing authorization checks in reusable policy or repository layers to reduce endpoint omissions
  • Returning consistent authorization failures without revealing whether another user's chat exists
  • Using least-privilege service identities and isolating tenant data at the storage layer where practical
  • Treating identifiers as references only, never as evidence of authorization

How teams detect issues like this

Organizations commonly detect this class of issue through:

  • Static analysis and code review checks for database lookups keyed only by request-supplied identifiers
  • Review of every endpoint that accepts chat_id or another object key
  • Tests that authenticate as one user and attempt read, delete, and write operations against another user's resources
  • API gateway or policy enforcement requiring explicit subject-to-object authorization decisions
  • Monitoring for repeated access attempts involving many unrelated or sequential chat identifiers
  • Automated security testing tools that exercise broken object-level authorization scenarios

Sources

SourceLink
github.comgithub.com/QuivrHQ/quivr
github.comgithub.com/QuivrHQ/quivr/blob/v0.0.322/backend/api/quivr_api/modules/chat/controller/chat_routes.py
github.comgithub.com/QuivrHQ/quivr/issues/3697
vulncheck.comvulncheck.com/advisories/quivr-chat-endpoints-missing-ownership-validation

Frequently asked

questions

Yes, the affected functionality is exposed through HTTP API endpoints. Exploitation generally requires authenticated access and a usable identifier for another user's chat.

No. The described issue can affect ordinary authenticated users if the application does not enforce ownership checks for the requested chat.

Enforce a server-side authorization decision for the authenticated subject, tenant, and target chat before every read or state-changing operation.

Use centralized object-level authorization, include cross-account access tests in CI, avoid trusting client-supplied ownership information, and monitor for suspicious enumeration of resource identifiers.

Find out what's already
exploitable in your codebase.