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

Low 3.7 Published Updated

Authenticated users can delete files from other users' knowledge bases due to missing ownership verification in the file removal API.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-23522?

CVE-2026-23522 is a low-severity missing authorization vulnerability in lobehub lobe-chat, published on 19 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-915, CWE-862, CWE-639, CWE-284

Which versions are affected by CVE-2026-23522?

2 open source packages ship an affected version, including @lobehub/chat.

PackageAffectedFixed in
@lobehub/chat npmAll versions to 1.143.2None
@lobehub/chat npmAll versions to 1.143.2None

How do I fix CVE-2026-23522?

No fix has been published for CVE-2026-23522 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-23522 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-23522 exists.

Sources

Also known as GHSA-j7xp-4mg9-x28r.

Is CVE-2026-23522 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free