CVE-2026-23522: @lobehub/chat Lobe Chat Has IDOR Vulnerability
LOWCVE-2026-23522 is a LOW (CVSS 3.7) lobe chat has idor vulnerability (CWE-284: Improper Access Control) affecting @lobehub/chat libraries in the npm ecosystem. The issue involves lobe chat has idor in knowledge base file removal that allows cross user file deletion. Remediation is available in the latest vendor maintenance releases.
CVE-2026-23522 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2026-23522
To remediate this vulnerability, upgrade all affected @lobehub/chat dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @lobehub/chat@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @lobehub/chat
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-23522, inspect your project dependencies using npm:
npm ls @lobehub/chat
Analyze the terminal output to locate any version of @lobehub/chat in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls @lobehub/chat command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In @lobehub/chat, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-23522 Affected @lobehub/chat Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@lobehub/chat
|
npm |
≤ 1.143.2
|
|
References
Frequently Asked Questions
What is CVE-2026-23522?
Which @lobehub/chat versions are affected?
What version fixes CVE-2026-23522?
Is @lobehub/chat affected?
What is the CVSS score of CVE-2026-23522?
What CWE is associated with CVE-2026-23522?
How can I check npm dependencies for CVE-2026-23522?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j7xp-4mg9-x28r",
"modified" : "2026-01-20T17:14:39Z",
"published" : "2026-01-20T17:14:39Z",
"aliases" : [ "CVE-2026-23522" ],
"summary" : "Lobe Chat has IDOR in Knowledge Base File Removal that Allows Cross User File Deletion",
"details" : "### Summary\n\n`knowledgeBase.removeFilesFromKnowledgeBase` tRPC ep allows authenticated users to delete files from any knowledge base without verifying ownership.\n\n### Details\n\n`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.\n\n### PoC\n\n```\nATTACKER_TOKEN=\"xx\"\n\nVICTIM_KB=\"kb_tuLBfskdDN1r\"\nVICTIM_FILE=\"file_v5wCNLqSaoPp\"\n\ncurl -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\"'\"]}}}'\n```\n\nResponse:\n\n`{\"result\":{\"data\":{\"json\":{\"command\":\"DELETE\",\"rowCount\":1,\"oid\":null,\"rows\":[],\"fields\":[]}}}}`\n\n### Impact\n\nAn attacker can delete files from any user's KB. RAG/AI functionality broken when files removed. It could cause loss of important documents, proprietary data etc.\n\nWhile the vuln 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@lobehub/chat"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.143.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/lobehub/lobe-chat/security/advisories/GHSA-j7xp-4mg9-x28r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-23522"
}, {
"type" : "WEB",
"url" : "https://github.com/lobehub/lobe-chat/commit/2c1762b85acb84467ed5e799afe1499cd2f912e6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lobehub/lobe-chat"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-20T17:14:39Z",
"nvd_published_at" : "2026-01-19T17:15:50Z"
}
}