CVE-2026-5971 Details
Description
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.
A critical eval injection vulnerability has been identified in FoundationAgents MetaGPT versions through 0.8.1. The issue resides in the XML Handler component, specifically within the ActionNode.xml_fill function of the file metagpt/actions/action_node.py. This vulnerability arises because the function uses the unsafe eval() method to process strings from LLM responses into Python objects, particularly for list and dict field types. An attacker who can manipulate the LLM's output, either through prompt injection or by exploiting a compromised model, could inject arbitrary Python code that gets executed on the server, leading to remote code execution.
Users are advised to update to a version of MetaGPT that addresses this vulnerability. If no such version is available, consider using the QEMU microVM sandboxed code execution feature, which can be integrated into MetaGPT as an alternative to the current host-process execution.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/FoundationAgents/MetaGPT/ | [email protected] | Product |
| https://github.com/FoundationAgents/MetaGPT/issues/1928 | [email protected] | ExploitIssue Tracking |
| https://github.com/FoundationAgents/MetaGPT/issues/1956 | [email protected] | Issue Tracking |
| https://vuldb.com/submit/791734 | [email protected] | ExploitThird Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/356525 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/356525/cti | [email protected] | Permissions RequiredVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
| CWE-95 | Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| deepwisdom metagpt | <= 0.8.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Initial Analysis | [email protected] |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 9, 2026 | New CVE Received | [email protected] |