ADVISORIES

PyPA Advisory Database

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.

Affected packages

EcosystemPackageAffected versions
PyPImetagpt
All versions up to and including 0.8.2

References