Traversée de chemin dans browse-mcp (CVE-2026-55557)
Résumé
Traversée de chemin dans browse-mcp (CVE-2026-55557). Risque d'opérations non autorisées ou de divulgation. Exploitable via browser_download. Atténuation : mise à jour vers 0.8.2 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
browser_download wrote a fetched file to join(save_dir, filename) with no validation of save_dir, and browser_save_state / browser_load_state honored an explicit path unchanged. The MCP caller controls these arguments (a malicious MCP client, or an autonomous agent steered by indirect prompt injection on a visited page), so an attacker could supply an arbitrary save_dir (or state path) together with a URL whose response body became the file contents, writing attacker-controlled bytes to any path the process can reach (for example ~/.bashrc, an autostart entry, or a cron file). That is an arbitrary file write that can lead to host code execution. The force_fetch fallback additionally used a raw fetch() that bypassed the BROWSE_MCP_ALLOWED_ORIGINS origin fence.
Estimated severity: CVSS 3.1 around 7.8 (High) for the local / agent-mediated case.
Patches
Fixed in 0.8.2. save_dir is confined under the download root (~/.browse-mcp/downloads) and the explicit state path under ~/.browse-mcp/state; absolute paths and .. escapes are rejected, and download filenames are reduced to a bare basename. force_fetch now also honors the origin fence. Data roots remain relocatable via BROWSE_MCP_HOME. Upgrade to browse-mcp 0.8.2.
Workarounds
Restrict the exposed tools with BROWSE_MCP_TOOLS to a set that excludes browser_download, browser_save_state, and browser_load_state (for example the hardened recipe in SECURITY.md). Note tha…
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
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-55557 a été découverte dans browse-mcp.
Des attaquants peuvent cibler un point d'entrée spécifique comme browser_download à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour browse-mcp vers 0.8.2 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « browse-mcp CVE-2026-55557 » sur le site de l'éditeur.
CVE-2026-55557 (browse-mcp) — CWE-22
Surface d'attaque : browser_download / save_dir / browser_save_state / browser_load_state
Correctif : 0.8.2 — appliquer immédiatement
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 traversée de chemin (CWE-22) affecte browse-mcp. Les attaquants atteignent le code vulnérable via browser_download.
Consultez l'avis de l'éditeur pour les versions affectées de browse-mcp. Surface d'attaque : browser_download / save_dir / browser_save_state / browser_load_state.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 0.8.2.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
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 'browse-mcp' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
browse-mcpを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade browse-mcp to 0.8.2ステージング環境で 0.8.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com