Description
WordPress Coding Standards is a set of PHP_CodeSniffer rules (sniffs) that enforce WordPress coding conventions. From 0.14.1 until 3.4.1, the WordPress.WP.EnqueuedResourceParameters sniff (active in the WordPress and WordPress-Extra rulesets) reconstructed the $ver argument passed to functions such as wp_enqueue_script() and ran it through eval() inside its is_falsy() method, so a maliciously crafted argument such as 'system'('id') would execute during a scan; as a result, running PHPCS with WordPressCS over untrusted PHP (for example a CI pipeline that lints pull requests, or a developer reviewing third-party code) could lead to arbitrary command execution on the scanning host. The WordPress-Core and WordPress-Docs rulesets are not affected. This issue is fixed in version 3.4.1.
Published: 2026-07-28
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

WordPress Coding Standards incorporates a PHP_CodeSniffer sniff, WordPress.WP.EnqueuedResourceParameters, which reconstructs the $ver argument for functions such as wp_enqueue_script() and passes it to an eval() call inside its is_falsy() method. A malformed argument such as 'system'('id') is therefore executed during a PHPCS scan. Because the scan can be performed against arbitrary PHP source in a CI pipeline or when a developer reviews third‑party code, an attacker who can influence the scanned code can trigger arbitrary command execution on the scanning host. The ability to execute arbitrary commands is a high‑impact vulnerability (CWE‑95).

Affected Systems

The flaw exists in WordPress Coding Standards releases from 0.14.1 to 3.4.0 inclusive. The WordPress.Core and WordPress.Docs rulesets are not affected. The vulnerability was resolved in the 3.4.1 release, so any deployment of WordPress Coding Standards 0.14.1–3.4.0 is susceptible.

Risk and Exploitability

The CVSS score for this issue is 8.6, reflecting the high severity of arbitrary code execution. The EPSS score is less than 1 %, indicating a very low aggregated exploitation probability, and the vulnerability does not appear in the CISA KEV catalog. Exploitation requires the PHPCS tool to run with WordPressCS enabled against code that can be manipulated by an attacker, i.e., in environments where untrusted code is linted. While the threat window is limited, the impact of successful exploitation is severe because it compromises the host executing the scan.

Generated by OpenCVE AI on August 3, 2026 at 14:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update WordPress Coding Standards to version 3.4.1 or later.
  • Limit PHPCS execution to trusted code only; avoid scanning untrusted repositories or code from external contributors.
  • If an update is not immediately possible, temporarily disable or remove the WordPress.WP.EnqueuedResourceParameters sniff from the PHPCS configuration until the patch is applied.

Generated by OpenCVE AI on August 3, 2026 at 14:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-3pwp-g2mj-5p3v WordPress Coding Standards (WordPressCS) contains an arbitrary code execution vulnerability
History

Wed, 29 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 28 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Wordpress wordpress-coding-standards
Vendors & Products Wordpress
Wordpress wordpress
Wordpress wordpress-coding-standards

Tue, 28 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Description WordPress Coding Standards is a set of PHP_CodeSniffer rules (sniffs) that enforce WordPress coding conventions. From 0.14.1 until 3.4.1, the WordPress.WP.EnqueuedResourceParameters sniff (active in the WordPress and WordPress-Extra rulesets) reconstructed the $ver argument passed to functions such as wp_enqueue_script() and ran it through eval() inside its is_falsy() method, so a maliciously crafted argument such as 'system'('id') would execute during a scan; as a result, running PHPCS with WordPressCS over untrusted PHP (for example a CI pipeline that lints pull requests, or a developer reviewing third-party code) could lead to arbitrary command execution on the scanning host. The WordPress-Core and WordPress-Docs rulesets are not affected. This issue is fixed in version 3.4.1.
Title WordPress Coding Standards (WordPressCS) contains an arbitrary code execution vulnerability
Weaknesses CWE-95
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}


Subscriptions

Wordpress Wordpress Wordpress-coding-standards
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-29T13:47:28.857Z

Reserved: 2026-05-11T20:14:43.201Z

Link: CVE-2026-45293

cve-icon Vulnrichment

Updated: 2026-07-29T13:47:08.781Z

cve-icon NVD

Status : Received

Published: 2026-07-28T16:18:13.503

Modified: 2026-07-29T14:16:30.737

Link: CVE-2026-45293

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T15:00:15Z

Weaknesses
  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')