Cyber Posture

CVE-2026-5971

High

Published: 09 April 2026

Published
09 April 2026
Modified
13 April 2026
KEV Added
Patch
CVSS Score 7.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS Score 0.0006 18.8th percentile
Risk Priority 15 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2026-5971 is a high-severity Code Injection (CWE-94) vulnerability. Its CVSS base score is 7.3 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 18.8th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-2 (Flaw Remediation).

Threat & Defense at a Glance

What attackers do: exploitation maps to Exploit Public-Facing Application (T1190) and 1 other technique. What defenders deploy: see the NIST 800-53 controls recommended below.
Threat & Defense Details

Mitigating Controls (NIST 800-53 r5)AI

prevent

SI-10 directly addresses the improper neutralization of directives in XML inputs to ActionNode.xml_fill by requiring validation to prevent code injection.

prevent

SI-2 ensures timely identification, reporting, and correction of flaws like CVE-2026-5971 in MetaGPT, preventing exploitation through patching or mitigation.

detect

RA-5 requires vulnerability scanning to detect the presence of CVE-2026-5971 in MetaGPT deployments, enabling prioritized remediation.

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1059.006 Python Execution
Adversaries may abuse Python commands and scripts for execution.
Why these techniques?

Remote unauthenticated code injection leading to arbitrary code execution in a public-facing Python-based application directly maps to T1190 for exploitation of public-facing apps and T1059.006 for Python command/script execution.

Confidence: HIGH · MITRE ATT&CK Enterprise v18.1

NVD Description

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.…

more

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.

Deeper analysisAI

CVE-2026-5971 is a code injection vulnerability stemming from improper neutralization of directives in dynamically evaluated code (CWE-94, CWE-95) in the ActionNode.xml_fill function within the file metagpt/actions/action_node.py of the XML Handler component. It affects FoundationAgents MetaGPT versions up to 0.8.1. The issue was published on 2026-04-09 with a CVSS v3.1 base score of 7.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L), indicating high severity due to its network accessibility and lack of prerequisites.

The vulnerability can be exploited remotely by unauthenticated attackers with low complexity, requiring no user interaction or privileges. Successful exploitation allows limited impacts on confidentiality, integrity, and availability, potentially enabling arbitrary code execution through manipulated XML inputs processed by the dynamic evaluation mechanism.

Advisories referenced in GitHub issues #1928 and #1956, along with VulDB entries, indicate the project was notified early via a pull request but has not yet responded or issued patches. No official mitigations or fixes are available as of the latest reports.

Notably, an exploit has been publicly disclosed and may be actively used. MetaGPT, as a multi-agent framework leveraging large language models, introduces AI/ML-specific risks where XML handling flaws could propagate through agent workflows, amplifying potential impacts in automated decision-making systems.

Details

CWE(s)

CVEs Like This One

CVE-2025-54322Shared CWE-94, CWE-95
CVE-2026-28505Shared CWE-94, CWE-95
CVE-2026-4965Shared CWE-94, CWE-95
CVE-2025-54550Shared CWE-94
CVE-2026-39891Shared CWE-94
CVE-2026-31048Shared CWE-94
CVE-2026-25153Shared CWE-94
CVE-2026-7466Shared CWE-94
CVE-2026-25481Shared CWE-94
CVE-2024-57609Shared CWE-94

References