CVE-2026-5971
FoundationAgents MetaGPT vulnerable to eval injection
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (medium).
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 and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | metagpt | no fix listed |
References
- https://github.com/FoundationAgents/MetaGPT
- https://github.com/FoundationAgents/MetaGPT/
- https://github.com/FoundationAgents/MetaGPT/issues/1928
- https://github.com/FoundationAgents/MetaGPT/issues/1956
- https://nvd.nist.gov/vuln/detail/CVE-2026-5971
- https://vuldb.com/submit/791734
- https://vuldb.com/vuln/356525
- https://vuldb.com/vuln/356525/cti