<?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>WordPress Coding Standards (Vulnerable: &gt;= 0.14.1, &lt; 3.4.1) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/wordpress-coding-standards-vulnerable--0.14.1--3.4.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, 28 Jul 2026 14:32:34 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/wordpress-coding-standards-vulnerable--0.14.1--3.4.1/feed.xml" rel="self" type="application/rss+xml"/><item><title>WordPress Coding Standards Contains an Arbitrary Code Execution Vulnerability</title><link>https://feed.craftedsignal.io/briefs/2026-07-wordpress-cs-rce/</link><pubDate>Tue, 28 Jul 2026 14:32:34 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-wordpress-cs-rce/</guid><description>WordPress Coding Standards (WordPressCS) versions before 3.4.1 are vulnerable to arbitrary code execution due to a flaw in the `WordPress.WP.EnqueuedResourceParameters` sniff, allowing an attacker to execute arbitrary commands on the scanning host by crafting a malicious `$ver` argument, posing a risk for users running PHPCS with specific rulesets in CI pipelines or developer environments.</description><content:encoded><![CDATA[<p>WordPress Coding Standards (WordPressCS) versions prior to 3.4.1 contain a critical arbitrary code execution vulnerability, identified as CVE-2026-45293, affecting the <code>WordPress.WP.EnqueuedResourceParameters</code> sniff. This vulnerability allows an attacker to execute arbitrary commands on the host running PHP CodeSniffer (PHPCS) if it processes untrusted PHP code. Specifically, a malicious <code>$ver</code> argument crafted within functions like <code>wp_enqueue_script()</code> or <code>wp_register_script()</code> can be directly executed via <code>eval()</code> by the vulnerable sniff during the code analysis process. This poses a significant risk to development environments, CI/CD pipelines, and any developer machines reviewing third-party code, particularly when using the <code>WordPress</code> or <code>WordPress-Extra</code> rulesets. The vulnerability does not require active exploitation of a WordPress site itself but targets the code scanning infrastructure.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious PHP code snippet, for instance, by embedding a system command within the <code>$ver</code> argument of <code>wp_enqueue_script()</code> or <code>wp_register_script()</code>, such as <code>wp_enqueue_script('handle', 'src', [], 'system'('id'))</code>.</li>
<li>The attacker introduces this malicious code into a project, potentially via a pull request in a software development lifecycle (SDLC) that uses automated code linting.</li>
<li>A developer or an automated CI/CD pipeline runs PHPCS with the affected WordPressCS versions (specifically, the <code>WordPress</code> or <code>WordPress-Extra</code> rulesets) to analyze the untrusted PHP code.</li>
<li>During the scan, the <code>WordPress.WP.EnqueuedResourceParameters</code> sniff is triggered to check the <code>$ver</code> argument for falsy values.</li>
<li>The sniff's internal <code>is_falsy()</code> method reconstructs the attacker's malicious <code>$ver</code> argument.</li>
<li>The reconstructed malicious argument is then passed to and executed by PHP's <code>eval()</code> function within the context of the scanning host.</li>
<li>The embedded system command, such as <code>system('id')</code>, is executed on the CI/CD server or developer's machine.</li>
<li>The attacker achieves arbitrary code execution on the host performing the code analysis, potentially leading to compromise of the development environment or infrastructure.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>This vulnerability directly leads to arbitrary code execution on systems running PHPCS with affected WordPressCS versions. While it does not directly compromise WordPress installations, it significantly impacts developer workstations, CI/CD pipelines, and any infrastructure responsible for code review and static analysis. A successful exploitation grants the attacker control over the scanning host, allowing for further lateral movement, data exfiltration, or supply chain attacks by injecting malicious code into repositories. All organizations utilizing WordPressCS for linting PHP code, particularly those processing untrusted code, are at risk.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Immediately upgrade WordPress Coding Standards to version 3.4.1 or later to remediate CVE-2026-45293.</li>
<li>If immediate upgrade is not feasible, disable the <code>WordPress.WP.EnqueuedResourceParameters</code> sniff by adding an <code>&lt;exclude&gt;</code> tag to your custom ruleset, as detailed in the workaround section of the advisory.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">threat</category><category>wordpress</category><category>code-execution</category><category>vulnerability</category><category>php</category><category>ci/cd</category></item></channel></rss>