PYSEC-2026-2645
MetaGPT has an eval injection in metagpt/strategy/tot.py
Details
A vulnerability was identified in FoundationAgents MetaGPT up to 0.8.2. This affects the function generate_thoughts of the file metagpt/strategy/tot.py of the component Tree-of-Thought Solver. The manipulation leads to code injection. It is possible to initiate the attack remotely. The exploit is publicly available and might be used. The project was informed of the problem early through an issue report but has not responded 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-6110[ADVISORY]
- https://github.com/FoundationAgents/MetaGPT/issues/1933[WEB]
- https://github.com/FoundationAgents/MetaGPT/pull/1946[WEB]
- https://github.com/FoundationAgents/MetaGPT[PACKAGE]
- https://vuldb.com/submit/791761[WEB]
- https://vuldb.com/vuln/356970[WEB]
- https://vuldb.com/vuln/356970/cti[WEB]
- https://pypi.org/project/metagpt[PACKAGE]
- https://github.com/advisories/GHSA-xr7v-m9px-q4qj[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"]}'