CVE-2026-6110CWE-74CWE-94

FoundationAgents MetaGPT Tree-of-Thought Solver tot.py generate_thoughts code injection

Medium · published April 12, 2026

CVSS v4.0
6.9
EPSS
1%
Percentile
53.1
In the wild
Unconfirmed
What it is

A vulnerability was identified in FoundationAgents MetaGPT up to 0.8.1. 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.

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
EPSS
0.00713 · 53.1th percentile
Weaknesses
CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'); CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-04-12T02:00Z
EPSS history
Timeline
  • 12 APR 02:00Z
    FoundationAgents MetaGPT Tree-of-Thought Solver tot.py generate_thoughts code injection
    cvelistv5