HIGH7.3
PYSEC-2026-2641
FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/utils/common.py
Details
A vulnerability was found in FoundationAgents MetaGPT up to 0.8.1. Impacted is the function get_mime_type of the file metagpt/utils/common.py. The manipulation results in os command injection. The attack can be executed remotely. The exploit has been made public and could 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
PyPI/metagpt
Introduced in:
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-5973[ADVISORY]
- https://github.com/FoundationAgents/MetaGPT/issues/1930[WEB]
- https://github.com/FoundationAgents/MetaGPT/pull/1983[WEB]
- https://github.com/FoundationAgents/MetaGPT[PACKAGE]
- https://vuldb.com/submit/791755[WEB]
- https://vuldb.com/vuln/356527[WEB]
- https://vuldb.com/vuln/356527/cti[WEB]
- https://pypi.org/project/metagpt[PACKAGE]
- https://github.com/advisories/GHSA-qw5f-qpq5-ppfg[ADVISORY]