PYSEC-2026-2638
FoundationAgents MetaGPT vulnerable to eval injection
Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
0No fixed version published yet for metagpt (pip). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-5971[ADVISORY]
- https://github.com/FoundationAgents/MetaGPT/issues/1928[WEB]
- https://github.com/FoundationAgents/MetaGPT/issues/1956[WEB]
- https://github.com/FoundationAgents/MetaGPT[PACKAGE]
- https://vuldb.com/submit/791734[WEB]
- https://vuldb.com/vuln/356525[WEB]
- https://vuldb.com/vuln/356525/cti[WEB]
- https://pypi.org/project/metagpt[PACKAGE]
- https://github.com/advisories/GHSA-3ghp-8r47-4gj4[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/metagpt"]}'