---
id: CVE-2026-5971
aliases:
  - GHSA-3ghp-8r47-4gj4
  - PYSEC-2026-2638
title: FoundationAgents MetaGPT vulnerable to eval injection
summary: FoundationAgents MetaGPT vulnerable to eval injection
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.1
published: '2026-04-09'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-3ghp-8r47-4gj4'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-5971'
  - url: 'https://github.com/FoundationAgents/MetaGPT/issues/1928'
  - url: 'https://github.com/FoundationAgents/MetaGPT/issues/1956'
  - url: 'https://github.com/FoundationAgents/MetaGPT'
  - url: 'https://vuldb.com/submit/791734'
  - url: 'https://vuldb.com/vuln/356525'
  - url: 'https://vuldb.com/vuln/356525/cti'
tags:
  - osv
  - pip
epss: 0.00713
epssPercentile: 0.51646
ingestedAt: '2026-07-13T18:57:51.878Z'
---

## Overview

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 packages

- `metagpt <= 0.8.1`

## Remediation

Refer to the advisory for the patched release.
