Catégories
CVE-2026-25904

SSRF (Falsification de requête côté serveur) dans mcp-run-python (CVE-2026-25904)

Résumé

SSRF dans mcp-run-python (CVE-2026-25904). Risque d'opérations non autorisées ou de divulgation. Exploitable via localhost.

Description d'origine

La description telle que publiée par la source (souvent en anglais).

Impact

Server-Side Request Forgery (SSRF):
A security vulnerability exists in the mcp-run-python tool (specifically within the Pydantic-AI integration) due to an overly permissive Deno sandbox configuration.

The tool configures the Deno runtime—which is intended to isolate the execution of untrusted Python code—with network permissions that include access to the host's loopback interface (localhost). Consequently, malicious Python code executed through the tool can bypass network isolation and send HTTP requests to internal services running on the host machine. This allows attackers to interact with local APIs, databases, or cloud metadata services that should not be accessible from the sandbox.

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 an alternative execution environment that enforces strict network isolation (e.g., blocking all outbound traffic or explicitly denying access to 127.0.0.1/::1).

Workarounds

There are no configuration-based workarounds provided by the package itself. Remediation requires modifying the source code to restrict the Deno permissions (specifically removing or narrowing the --allow-net flag) or moving the execution to a container with no network access.

Resources

  • [CV…

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-25904 a été découverte dans mcp-run-python.
Des attaquants peuvent cibler un point d'entrée spécifique comme localhost à 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-25904 » sur le site de l'éditeur.

CVE-2026-25904 (mcp-run-python) — CWE-918
Vecteur d'attaque : distant (réseau) / non authentifié
Surface d'attaque : localhost
Contournement : There are no configuration-based workarounds provided by the package itself.
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 SSRF (CWE-918) affecte mcp-run-python. Les attaquants atteignent le code vulnérable via localhost sans authentification.

📍 Périmètre concerné

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

🔥 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 provided by the package itself.

🔍 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 provided by the package itself.

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

  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