CVE-2026-23522: Lobe Chat IDOR in Knowledge Base file removal

CVE-2026-23522 · Severity: low · CVSS 3.1 · Published 2026-01-20

Lobe Chat is an AI-powered application that uses Knowledge Bases to store documents for retrieval-augmented generation (RAG), which helps the AI provide more accurate and contextualized responses. A missing authorization check in the file deletion function allows an authenticated attacker to delete files from other users' Knowledge Bases if they know the target's Knowledge Base and file IDs, potentially causing loss of important documents and breaking RAG functionality.

Technologies: @lobehub/chat (npm). Vendors: npm.

Quick answers

Is CVE-2026-23522 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-23522 being exploited in the wild.
How severe is CVE-2026-23522?
Low severity, with a CVSS score of 3.1, published 20 January 2026.
Which products and versions are affected?
@lobehub/chat (npm) SEMVER:introduced=0,last_affected=1.143.2.
Is there a fix for CVE-2026-23522?
A patch was published on 2026-01-20: patched in v2.0.0-next.193 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-23522 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2026-23522?
Check whether you run @lobehub/chat (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is an Insecure Direct Object Reference (IDOR) in the knowledgeBase.removeFilesFromKnowledgeBase tRPC endpoint caused by a commented-out userId filter in the database query. An authenticated attacker can craft a POST request to delete files from any Knowledge Base without verifying ownership. Attack requires knowledge of the target Knowledge Base ID and file ID, and network access to the tRPC endpoint. While IDs are randomly generated and not easily enumerable, they may leak through shared links, logs, or HTTP referrer headers. The patch is available in version v2.0.0-next.193.

Affected products

  • Lobe Lobe Chat <=v2.0.0-next.192

Identifiers

  • CVE-2026-23522
  • GHSA-j7xp-4mg9-x28r

Timeline

  • 2026-01-20: disclosed
  • 2026-01-20: patched: patched in v2.0.0-next.193

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.