The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-23522

CVE-2026-23522: LobeChat Authorization Bypass Vulnerability

CVE-2026-23522 is an authorization bypass flaw in LobeChat that allows authenticated users to delete files from any knowledge base without ownership verification. This article covers technical details, affected versions, impact, and mitigation.

Published: January 23, 2026

CVE-2026-23522 Overview

LobeChat, an open source chat application platform, contains a broken access control vulnerability in versions prior to 2.0.0-next.193. The knowledgeBase.removeFilesFromKnowledgeBase tRPC endpoint allows authenticated users to delete files from any knowledge base without verifying ownership. This occurs because the userId filter in the database query is commented out, enabling attackers to delete other users' knowledge base files if they know the target knowledge base ID and file ID.

Critical Impact

Authenticated attackers can delete arbitrary files from any user's knowledge base, potentially causing data loss and disruption of service for affected users.

Affected Products

  • LobeChat versions prior to 2.0.0-next.193

Discovery Timeline

  • 2026-01-19 - CVE CVE-2026-23522 published to NVD
  • 2026-01-19 - Last updated in NVD database

Technical Details for CVE-2026-23522

Vulnerability Analysis

This vulnerability represents a classic broken access control flaw (CWE-284) where authorization checks are improperly implemented. The core issue lies in the removeFilesFromKnowledgeBase function within the database model layer, where a critical userId equality check was commented out during development or debugging and never restored.

When the function executes a delete operation against the knowledgeBaseFiles table, it only validates the knowledgeBaseId and fileId parameters, completely bypassing user ownership verification. This means any authenticated user can craft a request to delete files belonging to other users, provided they can obtain the target's knowledge base ID and file ID.

While practical exploitation requires knowing these random IDs, they may leak through various channels including shared links, application logs, referrer headers, or other information disclosure vectors.

Root Cause

The root cause is a commented-out authorization check in the database query logic. The line eq(knowledgeBaseFiles.userId, this.userId) was present in the code but disabled by being placed within a comment, effectively removing the user ownership validation from the delete operation. This allowed the delete query to execute against any knowledge base file matching the provided IDs, regardless of ownership.

Attack Vector

The attack is network-based and requires authentication to the LobeChat platform. An attacker would need to:

  1. Authenticate to the LobeChat application
  2. Obtain a target user's knowledge base ID and file ID through reconnaissance
  3. Invoke the knowledgeBase.removeFilesFromKnowledgeBase tRPC endpoint with the target's IDs
  4. Successfully delete the victim's files without authorization

The following code shows the vulnerable implementation and the security patch:

typescript
// VULNERABLE CODE (before patch):
removeFilesFromKnowledgeBase = async (knowledgeBaseId: string, ids: string[]) => {
  return this.db.delete(knowledgeBaseFiles).where(
    and(
      eq(knowledgeBaseFiles.knowledgeBaseId, knowledgeBaseId),
      inArray(knowledgeBaseFiles.fileId, ids),
      // eq(knowledgeBaseFiles.userId, this.userId),  // Authorization check DISABLED
    ),
  );
};

// PATCHED CODE (after fix):
removeFilesFromKnowledgeBase = async (knowledgeBaseId: string, ids: string[]) => {
  return this.db
    .delete(knowledgeBaseFiles)
    .where(
      and(
        eq(knowledgeBaseFiles.userId, this.userId),  // Authorization check RESTORED
        eq(knowledgeBaseFiles.knowledgeBaseId, knowledgeBaseId),
        inArray(knowledgeBaseFiles.fileId, ids),
      ),
    );
};

Source: GitHub Commit Details

Detection Methods for CVE-2026-23522

Indicators of Compromise

  • Unexpected deletion of knowledge base files without user action
  • API audit logs showing removeFilesFromKnowledgeBase calls targeting multiple knowledge base IDs from a single user
  • User reports of missing files from their knowledge bases

Detection Strategies

  • Monitor tRPC endpoint calls for knowledgeBase.removeFilesFromKnowledgeBase and flag requests where the authenticated user ID doesn't match the knowledge base owner
  • Implement rate limiting and anomaly detection on file deletion operations
  • Review application logs for bulk deletion patterns or requests targeting knowledge bases not owned by the requesting user

Monitoring Recommendations

  • Enable detailed audit logging for all knowledge base modification operations
  • Set up alerts for unusual deletion activity patterns across multiple knowledge bases
  • Regularly review access logs for the tRPC endpoints to identify potential exploitation attempts

How to Mitigate CVE-2026-23522

Immediate Actions Required

  • Upgrade LobeChat to version 2.0.0-next.193 or later immediately
  • Review knowledge base deletion logs to identify any potential unauthorized deletions
  • Notify users if suspicious deletion activity is detected on their knowledge bases

Patch Information

The vulnerability is addressed in LobeChat version 2.0.0-next.193. The fix restores the userId authorization check in the removeFilesFromKnowledgeBase function, ensuring that users can only delete files from knowledge bases they own. The patch can be reviewed in the GitHub Commit and additional details are available in the GitHub Security Advisory.

Workarounds

  • If immediate patching is not possible, consider temporarily disabling the knowledge base file deletion functionality
  • Implement network-level access controls to restrict API access to trusted users only
  • Deploy a web application firewall (WAF) rule to monitor and potentially block suspicious removeFilesFromKnowledgeBase requests
bash
# Upgrade LobeChat to patched version
npm update @lobehub/lobe-chat@2.0.0-next.193
# Or using yarn
yarn upgrade @lobehub/lobe-chat@2.0.0-next.193

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechLobechat

  • SeverityLOW

  • CVSS Score3.7

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-284
  • Technical References
  • GitHub Commit Details

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-23733: LobeChat Stored XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English