<?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>Faf-Mcp (&lt;= 2.1.2) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/faf-mcp--2.1.2/</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>Wed, 19 Aug 2026 22:34:43 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/faf-mcp--2.1.2/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 Local File Read and Write in faf-mcp</title><link>https://feed.craftedsignal.io/briefs/2026-08-faf-mcp-path-traversal/</link><pubDate>Wed, 19 Aug 2026 22:34:43 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-faf-mcp-path-traversal/</guid><description>The faf-mcp package contains an arbitrary local file read/write vulnerability due to failure to validate user-supplied path arguments, allowing attackers to access or modify sensitive files outside the project directory.</description><content:encoded><![CDATA[<p>The faf-mcp package (versions 2.1.2 and earlier) contains a critical path traversal vulnerability caused by the insecure handling of the <code>path</code> argument in its MCP (Model Context Protocol) tools. The application resolves caller-provided paths using <code>~</code> expansion and <code>path.resolve()</code> without confining them to a trusted project directory. This flaw allows an attacker to bypass intended directory restrictions using absolute paths or directory traversal sequences (../). By sending crafted tool calls via an MCP client, an attacker can read sensitive files, such as SSH keys, AWS credentials, or system configuration files, and overwrite files on the host system where the faf-mcp server process has sufficient permissions. This vulnerability was identified during a security audit and is remediated in version 2.1.3 through robust path canonicalization and directory confinement.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows an attacker to perform unauthorized file system operations, leading to potential credential theft, information disclosure, and system compromise. Attackers can reach critical files such as <code>~/.ssh/id_rsa</code>, <code>~/.aws/credentials</code>, and <code>/etc/passwd</code>. Because the server operates over stdio and responds to tool calls, this vulnerability is highly susceptible to exploitation through LLM prompt injection, where an agent processing malicious external content is coerced into executing these unauthorized file operations.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade to faf-mcp version 2.1.3 or later immediately to apply the path confinement logic in <code>safe-path.ts</code>.</li>
<li>If upgrading is not immediately feasible, restrict the use of the server to trusted environments and define the <code>FAF_ALLOWED_ROOTS</code> environment variable to explicitly bound access to a single, low-risk project directory.</li>
<li>Implement endpoint monitoring to detect unauthorized file access patterns from the faf-mcp process (or the parent node process) targeting sensitive configuration paths outside the expected working directory.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category></item></channel></rss>