WordPress Coding Standards (WordPressCS) contains an arbitrary code execution vulnerability
High severity. Published 28 July 2026. Update wp-coding-standards/wpcs to 3.4.1 or later: composer update wp-coding-standards/wpcs.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| wp-coding-standards/wpcs (opens in a new tab) | >= 0.14.1, < 3.4.1 | 3.4.1 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show wp-coding-standards/wpcs
composer auditAdvisory details
| Severity | HighCVSS 8.6 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-45293 (opens in a new tab) |
| GHSA | GHSA-3pwp-g2mj-5p3v (opens in a new tab) |
| Weakness | CWE-95 |
What the advisory says
Impact
WordPress Coding Standards (WordPressCS) versions before 3.4.1 contain an arbitrary code execution vulnerability in the WordPress.WP.EnqueuedResourceParameters sniff. As a result, running PHPCS with WordPressCS over untrusted PHP code, for example, in a CI pipeline that lints pull requests, or on a developer machine reviewing third-party code, could lead to arbitrary command execution on the scanning host.
This affects users of the WordPress and WordPress-Extra rulesets. The WordPress-Core ruleset and the WordPress-Docs ruleset are not affected.
Source: GHSA-3pwp-g2mj-5p3v (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .