FoundationAgents MetaGPT vulnerable to eval injection
CVE-2026-5971 · GHSA-3ghp-8r47-4gj4 · published 2026-04-09 · updated 2026-04-10
- Severity
- Medium
- CVSS score
- 7.3
- Chance of exploitation (EPSS)
- 0.40%
- Fixed in
- No fix yet
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Partial
- CISA SSVC
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.
No fixed release is listed yet for metagpt. Follow the source advisory for updates, and until one ships:
General guidance from ShieldPi, not a vendor fix
- Command or code injection. Remove or disable the affected server or tool, or run it in a sandbox with no secrets in its environment.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| metagpt | PyPI | <= 0.8.1 | No fix yet |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- HighCode execution in metagptmetagpt
- MediumMetaGPT has an eval injection in metagpt/strategy/tot.pymetagpt
- MediumFoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/tools/libs/terminal.pymetagpt
- MediumMetaGPT has an Injection issuemetagpt
- MediumFoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/utils/common.pymetagpt
- MediumFoundationAgents MetaGPT vulnerable to os command injection via the Terminal.run_commandmetagpt
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.