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.
Une SSRF (CWE-918) affecte mcp-run-python. Les attaquants atteignent le code vulnérable via localhost sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de mcp-run-python. Surface d'attaque : localhost.
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 provided by the package itself.
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 provided by the package itself.パッチが適用されるまでの応急処置として、There are no configuration-based workarounds provided by the package itself. を実施。回避策の副作用 (機能低下) を確認した上で。
-
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