Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The CVSS v4.0 score of 6.9 with vector AV:N/AC:L/PR:N/UI:N indicates high attack feasibility: the vulnerability requires no authentication, has low attack complexity, no user interaction, and is network-accessible. However, the impact scope is limited-VC:L (low confidentiality impact), VI:L (low integrity impact), VA:L (low availability impact)-suggesting the vulnerability does not provide complete system compromise. The presence of publicly available exploit code (POC/Exploit: Publicly available) combined with EPSS indicator E:P (exploit in public code repositories) elevates real-world risk despite the medium CVSS score. The project's non-responsive status to early vulnerability disclosure via GitHub pull request (issue #1928 and #1956) indicates no patch is currently available, leaving all users of versions up to 0.8.1 actively vulnerable with known attack methods in circulation. |
| Exploit ScenarioDerived | An attacker sends a crafted XML payload to a MetaGPT instance over the network (no authentication required) containing malicious directives embedded in XML attributes or elements. When the ActionNode.xml_fill function processes this XML, the injected code is evaluated in the Python interpreter without proper neutralization, allowing the attacker to execute arbitrary Python code on the server. For example, an attacker could exfiltrate sensitive information, modify application behavior, or pivot to other systems on the network. Public exploit code is available on GitHub, enabling low-skill attackers to exploit this vulnerability. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 09, 2026
Remote code injection in FoundationAgents MetaGPT up to version 0.8.1 allows unauthenticated attackers to execute arbitrary code via improper neutralization of directives in the ActionNode.xml_fill XML handler function. The vulnerability has publicly available exploit code and affects the dynamic code evaluation mechanism in metagpt/actions/action_node.py, enabling attackers to manipulate XML input for code injection with low complexity and no authentication required.
RemediationAI
No vendor-released patch identified at time of analysis. The project was notified early through GitHub pull request but has not yet implemented or released a fix. Users should monitor the official MetaGPT repository (https://github.com/FoundationAgents/MetaGPT) for security updates. As an interim mitigation, implement strict input validation and sanitization for all XML data fed to the ActionNode.xml_fill function, restrict network access to MetaGPT instances if operationally feasible, and consider running MetaGPT in isolated or sandboxed environments to limit the impact of potential code injection. Review GitHub issues #1928 and #1956 for community-proposed mitigations until an official patch is released.
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 stems from CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code), which occurs when untrusted input is used in dynamic code evaluation without proper sanitization. In MetaGPT, the ActionNode.xml_fill function in the XML Handler component processes XML data that is subsequently evaluated as code. The affected CPE (cpe:2.3:a:foundationagents:metagpt:*:*:*:*:*:*:*:*) indicates all versions up to 0.8.1 are vulnerable. The XML parsing mechanism fails to neutralize malicious directives embedded in XML attributes or content, allowing attackers to inject code that will be executed within the application's Python interpreter context.
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:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A flaw has been found in FoundationAgents MetaGPT up to 0.8.1. This vulnerability affects the function ActionNode.xml_fill of the file metagpt/actions/action_node.py of the component XML Handler. Executing a manipulation can lead to improper neutralization of directives in dynamically evaluated code. The attack may be launched remotely. The exploit has been published and may be used. The project was informed of the problem early through a pull request but has not reacted 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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
MetaGPT 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
Code injection in FoundationAgents MetaGPT versions up to 0.8.1 allows unauthenticated remote attackers to execute arbit
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
Server-side request forgery (SSRF) in FoundationAgents MetaGPT up to version 0.8.1 allows authenticated remote attackers
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
Cross-site request forgery in FoundationAgents MetaGPT through version 0.8.1 allows unauthenticated remote attackers to
EUVD-2026-21004
GHSA-3ghp-8r47-4gj4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB