A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-44287

CVE-2026-44287: FastGPT JavaScript Sandbox RCE Vulnerability

CVE-2026-44287 is a remote code execution vulnerability in FastGPT's JavaScript sandbox that allows attackers to bypass import restrictions and execute arbitrary commands. This article covers technical details, affected versions, and mitigation.

Published: June 4, 2026

CVE-2026-44287 Overview

FastGPT is an open source AI Agent building platform developed by labring. A sandbox escape vulnerability affects the JavaScript code execution sandbox in versions prior to 4.15.0-beta1. The sandbox worker located at projects/code-sandbox/src/pool/worker.ts:356 uses a regular expression to block dynamic import() calls. Attackers bypass the filter by inserting a block comment between the import keyword and the parenthesis. The bypass loads Node.js child_process and invokes execSync, achieving arbitrary command execution as uid=100(sandbox) inside the sandbox container. The vendor assigned CWE-94: Improper Control of Generation of Code to this issue.

Critical Impact

Authenticated attackers execute arbitrary operating system commands inside the FastGPT code sandbox container by submitting crafted JavaScript that evades the dynamic import filter.

Affected Products

  • FastGPT versions prior to 4.15.0-beta1
  • FastGPT code-sandbox worker component
  • Deployments exposing the JavaScript sandbox execution feature to authenticated users

Discovery Timeline

  • 2026-05-29 - CVE-2026-44287 published to NVD
  • 2026-06-01 - Last updated in NVD database

Technical Details for CVE-2026-44287

Vulnerability Analysis

The FastGPT code sandbox executes untrusted JavaScript inside a Node.js worker. To prevent dynamic module loading, the worker performs a string-level check against submitted code using the regex /\bimport\s*\(/. The check rejects code that contains import( with optional ASCII whitespace between the keyword and the opening parenthesis.

JavaScript syntax permits block comments at the same lexical position as whitespace. The bytes /, *, *, / are not members of the \s character class. A payload such as import/**/("child_process") parses as a valid dynamic import expression while evading the regex filter.

The sandbox additionally relies on a safeRequire Proxy to mediate access to Node.js built-in modules through require. The Proxy does not wrap dynamic import(). Once the regex is bypassed, the attacker resolves the unrestricted child_process module and calls execSync to run arbitrary commands. Execution occurs as uid=100(sandbox) inside the sandbox container.

Root Cause

The root cause is reliance on a regular expression for language-level security enforcement [CWE-94]. The filter inspects source text without parsing JavaScript, so syntactic constructs equivalent to whitespace are missed. Sandbox isolation depends on a single string match rather than a proper AST-based denylist or a Proxy that mediates both require and import().

Attack Vector

Exploitation requires the ability to submit JavaScript to the sandbox, which corresponds to an authenticated low-privilege user in a typical FastGPT deployment. The attacker submits code containing import/**/("child_process").then(cp => cp.execSync("<command>")) or an equivalent construct. The worker accepts the submission, the V8 engine parses the comment-bracketed dynamic import, the child_process module loads outside the safeRequire Proxy, and the attacker-supplied command executes inside the sandbox container.

Readers can review the technical write-up in the FastGPT GitHub Security Advisory GHSA-f5mq-qxm4-5mvc.

Detection Methods for CVE-2026-44287

Indicators of Compromise

  • Sandbox worker logs showing JavaScript submissions containing the literal substring import/**/( or other comment patterns between import and (
  • Process creation events for sh, bash, or other shells whose parent is the FastGPT code-sandbox Node.js worker
  • Unexpected outbound network connections originating from the sandbox container after code execution requests
  • File writes to writable paths inside the sandbox container by processes spawned from the worker

Detection Strategies

  • Inspect submitted sandbox code at the gateway for the regex import\s*(?:/\*[\s\S]*?\*/|//.*|\s)*\( to catch comment-based bypasses
  • Alert on any invocation of child_process APIs inside the sandbox runtime, regardless of the import path used
  • Correlate authenticated FastGPT API calls to /api/sandbox style endpoints with downstream execve syscalls in the container

Monitoring Recommendations

  • Forward container runtime telemetry and Node.js worker stdout/stderr to a centralized log store and retain submitted code payloads
  • Monitor the sandbox container for any process other than the expected Node.js worker tree
  • Track egress traffic from the sandbox container and baseline it to the empty set, since legitimate sandboxed code has no need to reach external hosts

How to Mitigate CVE-2026-44287

Immediate Actions Required

  • Upgrade FastGPT to version 4.15.0-beta1 or later, which removes the regex-based filter in favor of a hardened check
  • Restrict access to the code sandbox feature to trusted authenticated users until the patch is applied
  • Audit recent sandbox submissions for payloads containing import followed by comments and a parenthesis
  • Rotate any secrets that were reachable from the sandbox container file system or environment

Patch Information

The vulnerability is fixed in FastGPT 4.15.0-beta1. Apply the upstream release from the labring/FastGPT repository and rebuild the code-sandbox container image. Details and the official fix are documented in the GitHub Security Advisory GHSA-f5mq-qxm4-5mvc.

Workarounds

  • Disable the JavaScript code sandbox feature in FastGPT configuration until upgrade is possible
  • Run the code-sandbox container with a read-only root filesystem, dropped capabilities, and seccomp profiles that deny execve of shells
  • Apply egress network policies that block all outbound traffic from the sandbox container
  • Add a reverse proxy filter that rejects submissions matching import followed by comment sequences before the worker receives them
bash
# Example Kubernetes NetworkPolicy denying egress from the FastGPT sandbox pod
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: fastgpt-sandbox-deny-egress
spec:
  podSelector:
    matchLabels:
      app: fastgpt-code-sandbox
  policyTypes:
    - Egress
  egress: []

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechFastgpt

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42302: FastGPT Agent-Sandbox RCE Vulnerability

  • CVE-2026-33075: Fastgpt Fastgpt RCE Vulnerability

  • CVE-2025-49131: Fastgpt Sandbox RCE Vulnerability

  • CVE-2026-44285: FastGPT SSRF Vulnerability
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