# WordPress Coding Standards (WordPressCS) contains an arbitrary code execution vulnerability

High severity, published 2026-07-28. Update wp-coding-standards/wpcs to 3.4.1 or later: composer update wp-coding-standards/wpcs.

Canonical URL: https://buzzphp.com/security/ghsa-3pwp-g2mj-5p3v · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.6) |
| Published | 2026-07-28 |
| Updated | 2026-07-28 |
| CVE | [CVE-2026-45293](https://nvd.nist.gov/vuln/detail/CVE-2026-45293) |
| GHSA | [GHSA-3pwp-g2mj-5p3v](https://github.com/advisories/GHSA-3pwp-g2mj-5p3v) |
| Weakness | CWE-95 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| wp-coding-standards/wpcs | >= 0.14.1, < 3.4.1 | 3.4.1 |

## What to do

Update wp-coding-standards/wpcs to 3.4.1 or later: composer update wp-coding-standards/wpcs.

Check which version you run with `composer show wp-coding-standards/wpcs`, and every affected package with `composer audit`.

## About this advisory

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.



## Links

- [GHSA-3pwp-g2mj-5p3v on GitHub](https://github.com/advisories/GHSA-3pwp-g2mj-5p3v)
- [CVE-2026-45293 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-45293)
- [All Composer security advisories](https://buzzphp.com/security)
