Catégories
CVE-2026-25905

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.

❓ Quel est le problème

Une vulnérabilité (CWE-653) affecte mcp-run-python. Les attaquants atteignent le code vulnérable via runPython sans authentification.

📍 Périmètre concerné

Consultez l'avis de l'éditeur pour les versions affectées de mcp-run-python. Surface d'attaque : runPython / runPythonAsync.

🔥 Gravité

Gravité : ?. Risque d'opérations non autorisées ou de divulgation.

🔧 Comment corriger

Mettre à jour vers la version corrigée selon l'avis éditeur.

🛡️ Contournement

Contournement : There are no configuration-based workarounds.

🔍 Détection

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

  1. 1
    Identify exposure identify
    grep -r 'mcp-run-python' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で mcp-run-python を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply temporary workaround mitigate
    There are no configuration-based workarounds.

    パッチが適用されるまでの応急処置として、There are no configuration-based workarounds. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Paquets affectés

PyPI mcp-run-python
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.0.22"}]}]

Références

Nous utilisons des cookies pour l'analyse d'audience et la mesure publicitaire. Ce réglage s'applique à tous les sites de Game co., Ltd. En savoir plus