<?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/"><channel><title>Yeoman-Environment — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/yeoman-environment/</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, 26 May 2026 23:12:44 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/yeoman-environment/feed.xml" rel="self" type="application/rss+xml"/><item><title>yeoman-environment Vulnerable to Arbitrary Package Installation Leading to RCE (CVE-2026-42089)</title><link>https://feed.craftedsignal.io/briefs/2026-05-yeoman-rce/</link><pubDate>Tue, 26 May 2026 23:12:44 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-yeoman-rce/</guid><description>Versions of yeoman-environment ranging from 2.9.0 to before 6.0.1 install missing local generator packages from caller-supplied package names without user confirmation, potentially leading to arbitrary package installation and code execution in downstream consumers when attacker-controlled project configuration is passed.</description><content:encoded><![CDATA[<p>The <code>yeoman-environment</code> package, a core component of the Yeoman scaffolding tool, is susceptible to arbitrary package installation due to insufficient user confirmation checks. Specifically, versions 2.9.0 through 6.0.0 are affected. This vulnerability (CVE-2026-42089) stems from the <code>installLocalGenerators()</code> method, which directly calls <code>repository.install()</code> without prompting the user for confirmation. An attacker can exploit this by manipulating project configurations passed to downstream consumers, causing the installation of malicious packages. This can lead to arbitrary code execution during the CLI bootstrap process. The fix was released in version 6.0.1, which introduced an interactive confirmation prompt before installation.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious project configuration file.</li>
<li>The attacker leverages a downstream consumer application that utilizes <code>yeoman-environment</code> and passes the attacker-controlled project configuration to it.</li>
<li>The <code>installLocalGenerators()</code> function within <code>yeoman-environment</code> is triggered.</li>
<li>Due to the vulnerability, the <code>repository.install()</code> method is called without user confirmation, using package names supplied in the malicious configuration.</li>
<li>The attacker-specified packages are downloaded and installed from the npm registry (or a malicious mirror).</li>
<li>The installed packages execute arbitrary code during the CLI bootstrap, potentially granting the attacker control over the system.</li>
<li>The attacker establishes persistence through scheduled tasks or startup scripts.</li>
<li>The attacker performs lateral movement within the network to compromise additional systems.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability allows an attacker to achieve arbitrary code execution on systems using vulnerable versions of <code>yeoman-environment</code>. This can lead to complete system compromise, data theft, and further propagation of the attack within the network. The severity is high due to the potential for remote code execution without user interaction.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade <code>yeoman-environment</code> to version 6.0.1 or later to incorporate the fix that adds an interactive confirmation prompt before installation.</li>
<li>Deploy the Sigma rules provided below to detect attempts to exploit CVE-2026-42089 by monitoring for suspicious npm package installations via CLI.</li>
<li>Implement input validation and sanitization on project configuration files to prevent attackers from injecting malicious package names.</li>
<li>Monitor process creation events for unusual or unexpected processes spawned by npm or node.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>rce</category><category>supply-chain</category><category>CVE-2026-42089</category><category>yeoman</category></item></channel></rss>