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: Mintplexlabs Anythingllm Path Traversal

CVE-2026-5627 is a path traversal vulnerability in Mintplexlabs Anythingllm that enables attackers to access or delete arbitrary files, potentially exposing API keys or causing denial of service. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: May 14, 2026

CVE-2026-5627 Overview

CVE-2026-5627 is a path traversal vulnerability [CWE-29] in mintplex-labs/anything-llm versions up to and including 1.9.1. The flaw resides in the AgentFlows component, specifically the loadFlow and deleteFlow methods in server/utils/agentFlows/index.js. Improper use of path.join combined with normalizePath allows authenticated attackers to escape directory restrictions. Attackers can read or delete arbitrary .json files on the server. This enables disclosure of sensitive configuration data containing API keys or denial of service by removing files such as package.json. The issue is resolved in version 1.12.1.

Critical Impact

Authenticated network attackers can read or delete arbitrary .json files on the server, leading to API key disclosure and denial of service.

Affected Products

  • mintplex-labs anything-llm versions up to and including 1.9.1
  • AgentFlows component in server/utils/agentFlows/index.js
  • Deployments exposing the AnythingLLM agent API to authenticated users

Discovery Timeline

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

Technical Details for CVE-2026-5627

Vulnerability Analysis

The vulnerability stems from insufficient validation of user-supplied flow identifiers passed to the AgentFlows subsystem. The loadFlow and deleteFlow methods construct file paths using path.join with the attacker-controlled input. While normalizePath is applied, it does not enforce that the resulting path remains within the intended flows directory. An attacker can therefore supply traversal sequences such as ../../ and target any .json file the AnythingLLM process can access.

Reading arbitrary files exposes configuration data, including API keys for downstream LLM providers and vector stores. Deleting critical files like package.json or workspace metadata triggers application failure. The patch in version 1.12.1 introduces an isWithin helper that confirms resolved paths remain inside the trusted flows directory before file operations execute.

Root Cause

The root cause is reliance on path normalization without a containment check [CWE-29]. path.join resolves .. segments, and normalizePath only canonicalizes separators. Neither function verifies that the final path is a descendant of the flows storage directory, leaving traversal possible.

Attack Vector

Exploitation requires network access and authenticated privileges sufficient to invoke agent flow operations. An attacker submits a flow identifier containing directory traversal sequences to the loadFlow or deleteFlow endpoints. The server returns the contents of arbitrary .json files or deletes them, depending 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 3444b9b

The patch imports an isWithin helper to validate that resolved flow paths fall inside the permitted directory before any read or delete operation proceeds.

Detection Methods for CVE-2026-5627

Indicators of Compromise

  • Requests to AnythingLLM agent flow endpoints containing ../ or URL-encoded %2e%2e%2f sequences in the flow identifier parameter.
  • Unexpected access or deletion of .json files outside the configured storage/plugins/agent-flows directory.
  • Missing or truncated package.json, workspace configuration, or environment metadata files on AnythingLLM servers.

Detection Strategies

  • Inspect AnythingLLM application logs for loadFlow or deleteFlow calls referencing identifiers containing traversal characters.
  • Monitor file system audit logs for .json file reads or deletions originating from the AnythingLLM process outside its expected working directories.
  • Correlate administrative API authentication events with subsequent anomalous flow operations to detect compromised credentials.

Monitoring Recommendations

  • Enable verbose request logging on the AnythingLLM server and forward logs to a centralized analytics platform.
  • Alert on file integrity changes to critical files such as package.json, .env, and workspace JSON definitions.
  • Track outbound API key usage anomalies that may indicate disclosure of leaked credentials.

How to Mitigate CVE-2026-5627

Immediate Actions Required

  • Upgrade mintplex-labs/anything-llm to version 1.12.1 or later, which adds the isWithin containment check.
  • Rotate any API keys, tokens, and provider credentials stored in AnythingLLM configuration files that may have been exposed.
  • Audit existing flow files and server-side .json files for unauthorized access or unexplained deletions.

Patch Information

The fix is implemented in commit 3444b9b0aa6764d72d53670ab4b1aaccdc6b7017 and shipped in AnythingLLM 1.12.1. The patch adds an isWithin helper imported from ../files and applies it inside the loadFlow and deleteFlow methods of server/utils/agentFlows/index.js. See the GitHub commit and the Huntr bounty report for details.

Workarounds

  • Restrict access to AnythingLLM administrative and agent endpoints using network segmentation and reverse-proxy allow lists until the upgrade is applied.
  • Limit which accounts hold privileges to invoke agent flow operations, reducing the population of users who can reach loadFlow and deleteFlow.
  • Run the AnythingLLM process under a dedicated low-privilege user with file system access constrained to its required directories.
bash
# Upgrade AnythingLLM to the patched release
git fetch --all --tags
git checkout v1.12.1
yarn install --frozen-lockfile
yarn prod:server

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechMintplexlabs Anythingllm

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-29
  • Technical References
  • Huntr Bounty Announcement
  • Vendor Resources
  • GitHub Commit Change
  • Related CVEs
  • CVE-2026-32719: Mintplexlabs AnythingLLM Path Traversal

  • CVE-2024-3025: Mintplexlabs AnythingLLM Path Traversal

  • CVE-2026-41318: Mintplexlabs AnythingLLM XSS Vulnerability

  • CVE-2026-32617: Mintplexlabs AnythingLLM Auth Bypass Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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