Remote Code Execution (RCE) Affecting mcpadapt package, versions [,0.0.17)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MCPADAPT-12671200
  • published15 Sept 2025
  • disclosed1 Apr 2025
  • creditUnknown

Introduced: 1 Apr 2025

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

Upgrade mcpadapt to version 0.0.17 or higher.

Overview

mcpadapt is an Adapt MCP servers to many agentic framework.

Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to unsanitized input in the SmolAgentsAdapter where untrusted MCP server responses are interpolated into a dynamic Python class via an exec() call.

CVSS Base Scores

version 4.0
version 3.1