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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-5627

CVE-2026-5627: Anything-LLM Path Traversal Vulnerability

CVE-2026-5627 is a path traversal flaw in mintplex-labs/anything-llm allowing attackers to access or delete arbitrary files, leading to data leaks or denial of service. This article covers technical details, versions, and fixes.

Published: April 10, 2026

CVE-2026-5627 Overview

A critical path traversal vulnerability has been identified in mintplex-labs/anything-llm versions up to and including 1.9.1. The vulnerability exists within the AgentFlows component and stems from improper handling of user input in the loadFlow and deleteFlow methods located in server/utils/agentFlows/index.js. Attackers can exploit the flawed combination of path.join and normalizePath functions to bypass directory restrictions, enabling access to or deletion of arbitrary .json files on the server.

Critical Impact

This vulnerability enables attackers with high privileges to read sensitive configuration files containing API keys (information disclosure) or delete critical application files such as package.json (denial of service), potentially compromising the entire AnythingLLM deployment.

Affected Products

  • mintplex-labs/anything-llm versions up to and including 1.9.1
  • AnythingLLM deployments using the AgentFlows component
  • Server installations with .json configuration files containing sensitive data

Discovery Timeline

  • 2026-04-07 - CVE-2026-5627 published to NVD
  • 2026-04-08 - Last updated in NVD database

Technical Details for CVE-2026-5627

Vulnerability Analysis

This path traversal vulnerability (CWE-29) allows attackers to escape the intended directory context when loading or deleting flow configurations. The vulnerability is particularly dangerous because it enables both read and delete operations on arbitrary .json files across the server filesystem.

The attack requires network access and high privileges (such as administrator access to the AnythingLLM instance), but once these prerequisites are met, the impact extends beyond the application's scope—affecting other applications and data on the same server. This cross-scope impact makes the vulnerability especially concerning in shared hosting environments or enterprise deployments where multiple sensitive applications may coexist.

Root Cause

The root cause lies in the insufficient path validation logic within the AgentFlows utility module. The original implementation relied on path.join combined with normalizePath to construct file paths, but this combination fails to prevent directory traversal sequences (such as ../) from escaping the designated flows directory. The vulnerability specifically affects the loadFlow and deleteFlow methods, which accept user-controlled input without properly validating that the resolved path remains within the expected directory boundary.

Attack Vector

The attack is network-based, requiring the attacker to have authenticated access with high privileges (administrator-level) to the AnythingLLM application. The attacker crafts malicious flow names containing directory traversal sequences to target files outside the intended agentFlows directory. For example, an attacker could request to load or delete a flow named ../../config/settings to access files in parent directories.

The exploitation path involves:

  1. Authenticating to the AnythingLLM instance with administrator privileges
  2. Invoking the loadFlow or deleteFlow API endpoints with crafted path traversal payloads
  3. The server processes the malicious path, bypassing directory restrictions due to flawed path handling
  4. Arbitrary .json files are read or deleted based on the method invoked
javascript
 const path = require("path");
 const { v4: uuidv4 } = require("uuid");
 const { FlowExecutor, FLOW_TYPES } = require("./executor");
-const { normalizePath } = require("../files");
+const { normalizePath, isWithin } = require("../files");
 const { safeJsonParse } = require("../http");
 
 /**

Source: GitHub Commit

The security patch introduces the isWithin helper function from the files utility module, which validates that the resolved file path remains within the designated directory boundary before proceeding with file operations.

Detection Methods for CVE-2026-5627

Indicators of Compromise

  • Unusual access patterns to the loadFlow or deleteFlow API endpoints with path traversal sequences (../, ..%2f, etc.)
  • Missing or corrupted .json configuration files, particularly package.json or API key files
  • Error logs indicating file access attempts outside the agentFlows directory
  • Unexpected API key rotation requests following potential credential exposure

Detection Strategies

  • Monitor API request logs for flow names containing directory traversal patterns such as ../, ..\\, or URL-encoded variants
  • Implement file integrity monitoring on critical configuration files including package.json and any files containing API credentials
  • Configure web application firewall (WAF) rules to detect and block path traversal attempts in request parameters
  • Enable verbose logging on the AnythingLLM server to capture all flow load and delete operations with full path resolution details

Monitoring Recommendations

  • Deploy SentinelOne agents on servers hosting AnythingLLM to detect anomalous file access patterns and potential post-exploitation activity
  • Set up alerts for file deletion events on critical application files outside the expected directories
  • Implement audit logging for all administrative actions within AnythingLLM, particularly flow management operations
  • Establish baseline behavior for normal flow operations to identify anomalous access patterns

How to Mitigate CVE-2026-5627

Immediate Actions Required

  • Upgrade mintplex-labs/anything-llm to version 1.12.1 or later, which contains the security fix
  • Review server logs for any evidence of exploitation attempts targeting the loadFlow or deleteFlow endpoints
  • Audit API key files and configuration files for unauthorized access or modifications
  • Temporarily restrict administrative access to trusted IP addresses until the upgrade is completed

Patch Information

The vulnerability has been resolved in AnythingLLM version 1.12.1. The fix introduces the isWithin validation function that ensures all file path resolutions remain within the designated agentFlows directory before any file operations are performed. The security patch is available via the official GitHub commit. Additional details about the vulnerability discovery are available in the Huntr bounty submission.

Workarounds

  • If immediate upgrade is not possible, implement network-level access controls to restrict access to the AnythingLLM administrative interface
  • Deploy a reverse proxy or WAF with rules to filter requests containing path traversal sequences targeting flow-related endpoints
  • Temporarily disable the AgentFlows feature if it is not critical to operations until the upgrade can be performed
  • Implement file system permissions to restrict the AnythingLLM process from accessing files outside its application directory
bash
# Configuration example - Restrict access to AnythingLLM admin endpoints via nginx
location /api/v1/agent-flows/ {
    # Allow only trusted internal networks
    allow 10.0.0.0/8;
    allow 192.168.0.0/16;
    deny all;
    
    # Additional WAF-style filtering for path traversal
    if ($request_uri ~* "\.\./") {
        return 403;
    }
    
    proxy_pass http://localhost:3001;
}

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechAnything Llm

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-29
  • Technical References
  • GitHub Commit Overview

  • Huntr Bounty Submission
  • Latest CVEs
  • CVE-2026-8468: Elixir Plug Library DoS Vulnerability

  • CVE-2026-8295: simdjson Information Disclosure Vulnerability

  • CVE-2025-68421: Comarch ERP Optima Auth Bypass Vulnerability

  • CVE-2025-68420: Comarch ERP Optima Privilege Escalation
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