Vulnerability · Published Apr 9, 2026 · Assigned by VulDB
CVE-2026-5971FoundationAgents MetaGPT XML action_node.py ActionNode.xml_fill eval injection
High 7.3
In plain English
A high-severity code injection in MetaGPT from FoundationAgents. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | metagpt | no fix listed | GHSA-3ghp-8r47-4gj4 |
| PyPI | metagpt | no fix listed | PYSEC-2026-2638 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| FoundationAgents | MetaGPT | 0.8.00.8.1 |
Weakness: CWE-95, CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
References
- VDB-356525 | FoundationAgents MetaGPT XML action_node.py ActionNode.xml_fill eval injection vdb-entry, technical-description
- VDB-356525 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #791734 | FoundationAgents MetaGPT 0.8.1 Eval Injection (CWE-95) third-party-advisory
- https://github.com/FoundationAgents/MetaGPT/issues/1928 exploit, issue-tracking
- https://github.com/FoundationAgents/MetaGPT/issues/1956 issue-tracking
- https://github.com/FoundationAgents/MetaGPT/ product