---
id: CVE-2026-6110
aliases:
  - GHSA-xr7v-m9px-q4qj
  - PYSEC-2026-2645
title: MetaGPT has an eval injection in metagpt/strategy/tot.py
summary: MetaGPT has an eval injection in metagpt/strategy/tot.py
severity: high
cvss: 7.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'
vendor: metagpt
product: metagpt
ecosystem: pip
affected:
  - metagpt <= 0.8.2
published: '2026-04-12'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-xr7v-m9px-q4qj'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-6110'
  - url: 'https://github.com/FoundationAgents/MetaGPT/issues/1933'
  - url: 'https://github.com/FoundationAgents/MetaGPT/pull/1946'
  - url: 'https://github.com/FoundationAgents/MetaGPT'
  - url: 'https://vuldb.com/submit/791761'
  - url: 'https://vuldb.com/vuln/356970'
  - url: 'https://vuldb.com/vuln/356970/cti'
tags:
  - osv
  - pip
epss: 0.00713
epssPercentile: 0.51574
ingestedAt: '2026-07-13T18:58:05.334Z'
---

## Overview

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

- `metagpt <= 0.8.2`

## Remediation

Refer to the advisory for the patched release.
