ADVISORIES

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

EcosystemPackageAffected versions
PyPImetagpt
All versions up to and including 0.8.2

References