{"id":"CVE-2026-45293","published":"2026-07-28T15:34:45Z","modified":"2026-07-29T13:47:28Z","title":"WordPress Coding Standards (WordPressCS) contains an arbitrary code execution vulnerability","vendor":"WordPress","product":"WordPress-Coding-Standards","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00249,"percentile":0.16518,"provenance":"source"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://github.com/WordPress/WordPress-Coding-Standards/security/advisories/GHSA-3pwp-g2mj-5p3v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/WordPress/WordPress-Coding-Standards/pull/2771","tags":["x_refsource_MISC"]},{"url":"https://github.com/WordPress/WordPress-Coding-Standards/commit/a29048d0bbef5cf25d42349c74e4072d3cbc8325","tags":["x_refsource_MISC"]},{"url":"https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.4.1","tags":["x_refsource_MISC"]}],"priority":{"score":9.3,"factors":[{"name":"EPSS percentile","points":3.3},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"wordpress","affectedVersions":[{"vendor":"WordPress","product":"WordPress-Coding-Standards","versions":[">= 0.14.1, < 3.4.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-29T13:46:53.486331Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"wp-coding-standards/wpcs","vulnerableRanges":[">=0.14.1, <3.4.1"],"patched":["3.4.1"],"from":["GHSA-3pwp-g2mj-5p3v"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-49877","exploited":false,"provenance":"source"}}