PyPA Advisory Database
PYSEC-2026-2643
MetaGPT has an eval injection via a cross-site request forgery attack
Details
A vulnerability was determined in FoundationAgents MetaGPT up to 0.8.2. The impacted element is the function evaluateCode of the file metagpt/environment/minecraft/mineflayer/index.js of the component Mineflayer HTTP API. Executing a manipulation can lead to cross-site request forgery. The attack may be performed from remote. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | metagpt | All versions up to and including 0.8.2 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-6109
- https://github.com/FoundationAgents/MetaGPT/issues/1932
- https://github.com/FoundationAgents/MetaGPT
- https://vuldb.com/submit/791759
- https://vuldb.com/vuln/356969
- https://vuldb.com/vuln/356969/cti
- https://pypi.org/project/metagpt
- https://github.com/advisories/GHSA-w287-wwhf-95vv