Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malicious web page
-
DeliveryUser visits page while authenticated to MetaGPT
-
ExploitBrowser sends forged CSRF request to Mineflayer API
-
ExecutionevaluateCode function processes request without token validation
-
ImpactAttacker-controlled code executes with user privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | While the CVSS score of 4.3 indicates low severity, the risk assessment reveals a middle-ground real-world priority. The attack vector is network-based and requires no authentication (PR:N), but does require user interaction (UI:R), which moderately constrains exploitation. The integrity impact is limited (I:L) with no confidentiality or availability impact. The CVSS vector includes E:P (Exploit code Maturity: Proof-of-Concept), confirming publicly available exploit code. SSVC signals suggest this is automatable (network attack) with low technical impact (integrity only), but the lack of vendor response and active exploit disclosure elevate monitoring importance. This is not a critical infrastructure threat but warrants timely patching for organizations running MetaGPT in environments where CSRF attacks are viable. |
| Exploit ScenarioDerived | An attacker creates a malicious website containing JavaScript that submits a forged request to the MetaGPT Mineflayer HTTP API evaluateCode endpoint. When a user visiting the attacker's site has an active MetaGPT session, the browser automatically includes session cookies, causing the forged request to execute. The attacker-controlled code is evaluated within the Mineflayer context, allowing unauthorized actions such as modifying Minecraft game state or executing arbitrary operations. Publicly available exploit code demonstrates this attack pattern. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 12, 2026
Cross-site request forgery in FoundationAgents MetaGPT through version 0.8.1 allows unauthenticated remote attackers to perform unauthorized actions via the evaluateCode function in the Mineflayer HTTP API component. The vulnerability requires user interaction (UI:R) and has limited integrity impact, but publicly available exploit code exists and the vendor has not yet responded to early notification.
RemediationAI
Upgrade FoundationAgents MetaGPT to a version released after 0.8.1 once available. At the time of analysis, no vendor-released patch version has been independently confirmed, as the project has not yet responded to the early vulnerability report. In the interim, organizations should implement CSRF token validation and same-origin policy enforcement at the HTTP API level, restrict access to the Mineflayer API endpoint to trusted internal networks only, and educate users to avoid visiting untrusted websites while interacting with MetaGPT services. Monitor https://github.com/FoundationAgents/MetaGPT/issues/1932 for vendor updates and patch releases.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in the Mineflayer HTTP API integration within MetaGPT's Minecraft environment module (metagpt/environment/minecraft/mineflayer/index.js). Mineflayer is a JavaScript library that enables programmatic control of Minecraft clients. The evaluateCode function fails to implement proper CSRF protection mechanisms (CWE-352: Cross-Site Request Forgery), allowing attackers to craft malicious web requests that execute arbitrary code evaluation when a user visits an attacker-controlled page while authenticated to or interacting with the MetaGPT service. The root cause is the absence of token validation and same-origin policy enforcement on state-changing operations.
Know when Metagpt gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
5DescriptionCVE.org
A vulnerability was determined in FoundationAgents MetaGPT up to 0.8.1. The impacted element is the function evaluateCode of the file metagpt/environment/minecraft/mineflayer/index.js of the component Mineflayer HTTP API. Executing a manipulation can lead to cross-site request forgery. The attack may be performed from remote. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Related Vulnerabilities in FoundationAgents MetaGPT Multiple Vulnerabilities
View all 3MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell met
MetaGPT has a code injection vulnerability in actionoutput_str_to_mapping (EPSS 2.6%) allowing remote attackers to execu
MetaGPT by Foundation Agents has an insecure deserialization in deserialize_message (EPSS 1.7%) enabling remote code exe
Remote command injection in FoundationAgents MetaGPT versions 0.8.0 and 0.8.1 via the get_mime_type function in metagpt/
Remote code execution in FoundationAgents MetaGPT up to version 0.8.1 allows unauthenticated attackers to execute arbitr
Remote code injection in FoundationAgents MetaGPT up to version 0.8.1 allows unauthenticated attackers to execute arbitr
Code injection in FoundationAgents MetaGPT versions up to 0.8.1 allows unauthenticated remote attackers to execute arbit
Remote command injection in FoundationAgents MetaGPT versions up to 0.8.1 allows unauthenticated network attackers to ex
A code injection vulnerability exists in Foundation Agents MetaGPT up to version 0.8.1, specifically in the DataInterpre
A code injection vulnerability exists in Foundation Agents MetaGPT versions up to 0.8.1 within the code_generate functio
EUVD-2026-21694
GHSA-w287-wwhf-95vv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB