<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Browse-Mcp (&lt;= 0.8.1) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/browse-mcp--0.8.1/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 25 Aug 2026 18:50:18 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/browse-mcp--0.8.1/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Arbitrary File Write in browse-mcp Leading to Host Code Execution</title><link>https://feed.craftedsignal.io/briefs/2026-08-browse-mcp-rce/</link><pubDate>Tue, 25 Aug 2026 18:50:18 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-browse-mcp-rce/</guid><description>The browse-mcp package is vulnerable to arbitrary file write via unsanitized path arguments in browser tools, allowing an attacker to achieve host code execution by overwriting critical system configuration files.</description><content:encoded><![CDATA[<p>The browse-mcp package (versions &lt;= 0.8.1) contains a critical path traversal vulnerability that permits arbitrary file writes on the host machine. This issue arises from the <code>browser_download</code>, <code>browser_save_state</code>, and <code>browser_load_state</code> functions, which fail to validate destination directory paths or file path arguments provided by MCP clients. An attacker operating as a malicious MCP client, or by utilizing indirect prompt injection against an autonomous agent, can specify absolute paths or use directory traversal characters (..) to write arbitrary data to restricted locations, such as bash configuration files, cron entries, or autostart directories. Furthermore, the <code>force_fetch</code> utility was discovered to ignore the <code>BROWSE_MCP_ALLOWED_ORIGINS</code> fence, allowing for unauthorized data retrieval. These flaws provide a direct pathway for host code execution. The vulnerability is addressed in browse-mcp version 0.8.2, which introduces path confinement and improved input sanitization.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker identifies an autonomous agent or MCP client environment utilizing browse-mcp.</li>
<li>The attacker triggers an indirect prompt injection by serving a malicious URL to the agent's browser tool.</li>
<li>The agent or malicious client calls the <code>browser_download</code> or <code>browser_save_state</code> function.</li>
<li>The attacker provides a crafted <code>save_dir</code> or <code>path</code> argument containing directory traversal (e.g., ../../../home/user/.bashrc).</li>
<li>The <code>browser-mcp</code> service fetches content from the attacker-controlled source or writes provided state data.</li>
<li>The application performs the write operation at the destination path without path validation.</li>
<li>The attacker overwrites a critical configuration file to include malicious commands.</li>
<li>Upon file execution or shell initialization, the injected commands run, resulting in full host code execution.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows for arbitrary file write, which can result in full host code execution (HCE). This impacts the security posture of any environment where an autonomous agent utilizes browse-mcp, as it bridges the gap between web-based data retrieval and host filesystem access. There is no indication of mass exploitation, but the vulnerability is highly severe in agentic workflows.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Immediately upgrade browse-mcp to version 0.8.2 or higher to implement mandatory path confinement.</li>
<li>If upgrading is not immediately feasible, remove or disable the <code>browser_download</code>, <code>browser_save_state</code>, and <code>browser_load_state</code> tools within the <code>BROWSE_MCP_TOOLS</code> configuration.</li>
<li>Audit application logs for abnormal path usage or tool calls involving directory traversal patterns (e.g., &quot;..&quot; or absolute paths) when invoking browser management tools.</li>
<li>Define a hardened configuration by strictly controlling the <code>BROWSE_MCP_HOME</code> environment variable to ensure all state data is constrained to a known, non-sensitive directory.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>arbitrary-file-write</category><category>path-traversal</category><category>rce</category><category>agent-security</category></item></channel></rss>