{"answers":{"affected":"2 open source packages ship an affected version, including @lobehub/chat.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-23522 exists.","fix":"No fix has been published for CVE-2026-23522 yet. Limit exposure of the affected software until one is available.","what":"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."},"fix_prompt":"Check this codebase for CVE-2026-23522 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-23522 exists.\n\nAffected packages and fixed versions:\n- @lobehub/chat (npm): affected all versions up to 1.143.2; no fix listed\n- @lobehub/chat (npm): affected all versions up to 1.143.2; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-23522/ (Markdown: https://insights.sbomify.com/CVE-2026-23522/index.md)","id":"CVE-2026-23522","markdown":"https://insights.sbomify.com/CVE-2026-23522/index.md","name":"CVE-2026-23522","record":{"aliases":["GHSA-j7xp-4mg9-x28r"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Lobe Chat platform","requires_auth":"none","summary":"Authenticated users can delete files from other users' knowledge bases due to missing ownership verification in the file removal API.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"},{"id":"CWE-862","name":"Missing Authorization"},{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"},{"id":"CWE-284","name":"Improper Access Control"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Lobe Chat has IDOR in Knowledge Base File Removal that Allows Cross User File Deletion","id":"CVE-2026-23522","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Dive allows One-click Remote Code Execution through Deep Links for MCP Install","id":"CVE-2026-23523"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["1.143.2"],"package":"@lobehub/chat","purl":null,"source":"GHSA-j7xp-4mg9-x28r"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["1.143.2"],"package":"@lobehub/chat","purl":"pkg:npm/%40lobehub/chat","source":"GHSA-j7xp-4mg9-x28r"}],"prev":{"headline":"Traccar vulnerable to Path Traversal and External Control of File Name or Path","id":"CVE-2026-23521"},"products":["lobe-chat"],"published":"2026-01-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-01-20","vendors":["lobehub"]},"summary":"Authenticated users can delete files from other users' knowledge bases due to missing ownership verification in the file removal API.","url":"https://insights.sbomify.com/CVE-2026-23522/"}