<?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>Faker (&lt;= 10.4.0) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/faker--10.4.0/</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, 02 Sep 2026 18:06:25 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/faker--10.4.0/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 Code Execution in Faker.js helpers.fake</title><link>https://feed.craftedsignal.io/briefs/2026-09-faker-rce/</link><pubDate>Wed, 02 Sep 2026 18:06:25 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-faker-rce/</guid><description>The Faker.js library contains an arbitrary code execution vulnerability in the helpers.fake method, allowing attackers to access the global constructor and execute unauthorized JavaScript.</description><content:encoded><![CDATA[<p>Faker.js versions 10.4.0 and earlier are vulnerable to an arbitrary code execution flaw within the <code>helpers.fake</code> method, tracked as CVE-2026-73231. The vulnerability exists due to improper property resolution logic in <code>fakeEval.resolveProperty</code>. Specifically, the function attempts to resolve properties on functions directly rather than performing a recursive resolution. This logic error allows attackers to traverse and access the <code>constructor</code> of objects, providing a path to execute arbitrary JavaScript code.</p>
<p>The library documentation explicitly claims that it is not possible to use non-faker methods or plain JavaScript within fake template strings; however, this vulnerability proves that global objects remain accessible. An attacker can craft a template string containing a payload such as <code>{{test.constructor(alert('Code Execution'))}}</code> to escape the intended sandbox. This impacts any application that processes user-supplied or untrusted strings through the <code>helpers.fake</code> function.</p>
<h2 id="impact">Impact</h2>
<p>The vulnerability allows for remote code execution in any environment where an attacker can influence the template string passed to the <code>helpers.fake</code> method. This affects all applications leveraging Faker.js versions 10.4.0 and below. If an application uses this method to process inputs from end-users or external sources, an attacker could achieve full code execution within the Node.js or browser environment, potentially leading to data exfiltration or unauthorized system access.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade the <code>@faker-js/faker</code> package to a version beyond 10.4.0 immediately to resolve CVE-2026-73231.</li>
<li>Audit all application codebases for instances where user-supplied or external input is passed directly into the <code>faker.helpers.fake</code> method.</li>
<li>If upgrading is not immediately feasible, sanitize all input strings passed to <code>helpers.fake</code> to block characters and patterns that could facilitate access to the <code>constructor</code> property or other global objects.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>vulnerability</category><category>rce</category><category>javascript</category></item></channel></rss>