ADVISORIES

Vulnerability

CVE-2026-5974

A vulnerability was determined in FoundationAgents MetaGPT up to 0.8.1. The affected element is the function Bash.run in the library metagpt/tools/libs/terminal.py. This manipulation causes os command injection. The attack is possible to be carried out remotely. The project was informed of the problem early through a pull request but has not reacted yet.

2 advisories report this vulnerability, across 1 ecosystem.

Medium severity PyPI 2

Advisories

  • GHSA-fcc8-4q7h-wvwc

    FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/tools/libs/terminal.py

    Moderate CVE-2026-5974 PyPI Updated 13 July 2026
  • PYSEC-2026-2639

    FoundationAgents MetaGPT vulnerable to OS Command Injection in metagpt/tools/libs/terminal.py

    CVE-2026-5974 PyPI Updated 13 July 2026

References