Medium

FoundationAgents MetaGPT vulnerable to eval injection

  • Disclosed: 09.04.2026
  • Updated: 11.10.2026 14:17

A flaw has been found in FoundationAgents MetaGPT up to 0.8.1. This vulnerability affects the function ActionNode.xml_fill of the file metagpt/actions/action_node.py of the component XML Handler. Executing a manipulation can lead to improper neutralization of directives in dynamically evaluated code. The attack may be launched remotely. The exploit has been published and may be used. The project was informed of the problem early through a pull request but has not reacted yet.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) metagpt <= 0.8.1 no fix

References

CVSS score 7.3/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weakness (CWE)
CWE-94
Platform
Python (PyPI)
Package
metagpt
Disclosed
09.04.2026
Updated
11.10.2026 14:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-2638 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-3ghp-8r47-4gj4 - CC BY 4.0

Vulnerability history: metagpt

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (10) in the archive
Total entries
10
First → latest
01.2024 06.2026
Without a fix
8
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 6
  • Low 3

Disclosures per year

  1. 2024: 1
  2. 2025: 0
  3. 2026: 9
Severity:
  1. FoundationAgents MetaGPT vulnerable to eval injection this entry
    Medium · 7.3 CVE-2026-5971 <= 0.8.1 no fix

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.