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-6109

CVE-2026-6109: MetaGPT Mineflayer HTTP API CSRF Vulnerability

CVE-2026-6109 is a cross-site request forgery flaw in MetaGPT's Mineflayer HTTP API affecting versions up to 0.8.1. Attackers can exploit the evaluateCode function remotely. This article covers technical details, affected versions, impact assessment, and available mitigation strategies.

Published: April 17, 2026

CVE-2026-6109 Overview

A Cross-Site Request Forgery (CSRF) vulnerability has been identified in FoundationAgents MetaGPT versions up to 0.8.1. The vulnerability exists within the evaluateCode function located in the metagpt/environment/minecraft/mineflayer/index.js file, which is part of the Mineflayer HTTP API component. This flaw allows remote attackers to execute unauthorized actions by tricking authenticated users into making unintended requests to the vulnerable API endpoint.

Critical Impact

Remote attackers can exploit this CSRF vulnerability to manipulate the Mineflayer HTTP API, potentially leading to unauthorized code execution within the Minecraft environment managed by MetaGPT. The exploit has been publicly disclosed and may be actively utilized.

Affected Products

  • FoundationAgents MetaGPT versions up to 0.8.1
  • MetaGPT Mineflayer HTTP API component
  • Systems utilizing the evaluateCode function in metagpt/environment/minecraft/mineflayer/index.js

Discovery Timeline

  • April 12, 2026 - CVE-2026-6109 published to NVD
  • April 13, 2026 - Last updated in NVD database

Technical Details for CVE-2026-6109

Vulnerability Analysis

This vulnerability is classified as CWE-352 (Cross-Site Request Forgery). The Mineflayer HTTP API in MetaGPT fails to implement proper anti-CSRF protections on the evaluateCode endpoint. When a user with an active session to the MetaGPT application visits a malicious website or clicks a crafted link, the attacker can force the user's browser to send unauthorized requests to the API. Since the vulnerable endpoint lacks CSRF token validation or other request origin verification mechanisms, the server processes these forged requests as legitimate.

The attack can be initiated remotely across the network, requiring no authentication from the attacker but necessitating some form of user interaction—typically clicking a malicious link or visiting a compromised webpage while authenticated to the MetaGPT application.

Root Cause

The root cause of this vulnerability is the absence of CSRF protection mechanisms in the evaluateCode function within the Mineflayer HTTP API. The API endpoint accepts and processes state-changing requests without verifying the origin of the request or requiring anti-CSRF tokens. This architectural oversight allows attackers to craft malicious requests that are indistinguishable from legitimate user requests from the server's perspective.

Attack Vector

The attack is executed remotely via the network. An attacker crafts a malicious webpage or email containing a hidden form or JavaScript that automatically submits a request to the vulnerable evaluateCode endpoint. When an authenticated MetaGPT user visits this malicious content, their browser automatically sends the forged request along with their session cookies, causing the server to execute the attacker's specified code within the Minecraft Mineflayer environment.

The vulnerability allows manipulation of the integrity of the application, enabling attackers to execute arbitrary commands within the context of the victim's session. Additional technical details regarding the exploitation mechanism can be found in GitHub Issue #1932 and the VulDB entry.

Detection Methods for CVE-2026-6109

Indicators of Compromise

  • Unexpected HTTP requests to the /evaluateCode endpoint originating from external referrers or with suspicious origin headers
  • Log entries showing code execution requests without corresponding user-initiated actions in the application interface
  • Unusual Minecraft bot behaviors or commands executed without direct user input through the legitimate MetaGPT interface

Detection Strategies

  • Monitor HTTP request logs for the Mineflayer API endpoint and flag requests with suspicious Referer or Origin headers
  • Implement web application firewall (WAF) rules to detect potential CSRF attacks targeting the evaluateCode function
  • Enable detailed logging on the MetaGPT application to capture all API requests with their associated session and origin information
  • Deploy behavioral analysis to detect anomalous patterns in code execution requests

Monitoring Recommendations

  • Configure alerting for any requests to the metagpt/environment/minecraft/mineflayer/index.js endpoints from untrusted origins
  • Review application logs regularly for signs of automated or scripted requests that bypass normal user workflows
  • Implement real-time monitoring of API endpoint access patterns to identify potential CSRF exploitation attempts

How to Mitigate CVE-2026-6109

Immediate Actions Required

  • Restrict access to the Mineflayer HTTP API to trusted networks or localhost only until a patch is available
  • Implement network-level access controls to limit who can reach the vulnerable endpoint
  • Consider disabling the evaluateCode functionality if it is not essential to operations
  • Review recent API logs for signs of exploitation and investigate any suspicious activity

Patch Information

As of the last update on April 13, 2026, the MetaGPT project has been informed of this vulnerability through GitHub Issue #1932 but has not yet responded with an official patch. Users should monitor the MetaGPT GitHub repository for security updates and apply patches as soon as they become available.

Workarounds

  • Implement a reverse proxy with CSRF token validation in front of the Mineflayer HTTP API
  • Configure SameSite=Strict cookie attributes for any session cookies used by the MetaGPT application
  • Add custom middleware to validate the Origin and Referer headers on all incoming requests to the API
  • Use network segmentation to isolate the MetaGPT environment from untrusted network access
bash
# Example: Restrict API access using iptables
# Allow only localhost access to the Mineflayer API port (adjust port number as needed)
iptables -A INPUT -p tcp --dport 3000 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 3000 -j DROP

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

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechMetagpt

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-352
  • Technical References
  • GitHub MetaGPT Repository

  • GitHub Issue #1932

  • VulDB Submission #791759

  • VulDB #356969

  • VulDB #356969 CTI
  • Related CVEs
  • CVE-2026-6111: MetaGPT SSRF Vulnerability in decode_image

  • CVE-2026-5974: MetaGPT RCE Vulnerability

  • CVE-2026-5973: MetaGPT RCE Vulnerability via Command Injection

  • CVE-2026-5972: MetaGPT OS Command Injection 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