Vulnérabilité dans mcp-run-python (CVE-2026-25905)
Résumé
Vulnérabilité dans mcp-run-python (CVE-2026-25905). Risque d'opérations non autorisées ou de divulgation. Exploitable via runPython.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
Critical Sandbox Escape & Server Takeover:
A critical security vulnerability exists in mcp-run-python due to a lack of isolation between the Python runtime (Pyodide) and the host JavaScript environment.
The runPython and runPythonAsync functions execute Python code using Pyodide without restricting access to the JavaScript bridge. This allows any executed Python code—whether from a user or an AI model—to access the js module in Pyodide. Through this bridge, the Python code can modify the global JavaScript environment, interact with the Node.js process, and alter the behavior of the MCP server.
Specific Attack Vector: MCP Tool Shadowing
Because the Python code can modify the JS runtime, an attacker can dynamically overwrite or "shadow" existing MCP tools registered on the server. For example, an attacker could replace a secure file-reading tool with a malicious version that exfiltrates data to an external server, all while the MCP server appears to be functioning normally.
Patches
No Patch Available:
The mcp-run-python project is currently archived and maintainers have indicated it is unlikely to receive a fix.
Recommendation:
Users are strongly advised to immediately stop using this package.
If functionality is required, users must migrate to a maintained alternative that implements proper sandboxing (e.g., running Python in a Docker container or a restricted WASM environment with the JS bridge disabled).
Workarounds
T…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-25905 a été découverte dans mcp-run-python.
Des attaquants peuvent cibler un point d'entrée spécifique comme runPython à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : appliquez le correctif officiel de l'éditeur.
En cas de doute, contactez votre service informatique ou cherchez « mcp-run-python CVE-2026-25905 » sur le site de l'éditeur.
CVE-2026-25905 (mcp-run-python) — CWE-653
Vecteur d'attaque : distant (réseau) / non authentifié
Surface d'attaque : runPython / runPythonAsync
Contournement : There are no configuration-based workarounds.
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-653) affecte mcp-run-python. Les attaquants atteignent le code vulnérable via runPython sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de mcp-run-python. Surface d'attaque : runPython / runPythonAsync.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers la version corrigée selon l'avis éditeur.
Contournement : There are no configuration-based workarounds.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'mcp-run-python' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
mcp-run-pythonを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
There are no configuration-based workarounds.パッチが適用されるまでの応急処置として、There are no configuration-based workarounds. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- package github.com
- web research.jfrog.com