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

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-01-19T16:53:32.371Z
- Modified: 2026-06-17T10:21:43.300Z
- Also known as: GHSA-j7xp-4mg9-x28r
- Weaknesses: CWE-284, CWE-639, CWE-862, CWE-915
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- lobehub lobe-chat: < 2.0.0-next.193
- @lobehub/chat (npm): up to 1.143.2

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/lobehub/lobe-chat/security/advisories/GHSA-j7xp-4mg9-x28r> (web)
- <https://github.com/lobehub/lobe-chat/commit/2c1762b85acb84467ed5e799afe1499cd2f912e6> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23522> (advisory)
- <https://github.com/lobehub/lobe-chat> (package)

## Sources

- CVE List: [CVE-2026-23522](https://www.cve.org/CVERecord?id=CVE-2026-23522), CVE Terms of Use, modified 2026-01-20
- GitHub Advisory Database: [GHSA-j7xp-4mg9-x28r](https://github.com/advisories/GHSA-j7xp-4mg9-x28r), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-23522](https://nvd.nist.gov/vuln/detail/CVE-2026-23522), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23522 · Whole record: https://cve.day/CVE-2026-23522.json · Rebuilt by cve.day 2026-11-25T22:59:12.936Z
