Skip to content

Security: update WPCS to 3.4.1 - #192

Merged
aristath merged 1 commit into
developfrom
security/wpcs-3.4.1
Jul 29, 2026
Merged

Security: update WPCS to 3.4.1#192
aristath merged 1 commit into
developfrom
security/wpcs-3.4.1

Conversation

@ilicfilip

Copy link
Copy Markdown
Contributor

What

Updates wp-coding-standards/wpcs to 3.4.1, plus the transitive bumps it requires:

Package To
wp-coding-standards/wpcs 3.4.1
phpcsstandards/phpcsutils 1.2.3
phpcsstandards/phpcsextra 1.5.1

Why

WPCS 3.4.1 is a security release. Running the WordPress.WP.EnqueuedResourceParameters sniff over untrusted PHP — e.g. linting a pull request in CI — could lead to arbitrary command execution on the scanning host.

Affects the WordPress and WordPress-Extra rulesets, both of which this repo uses. WordPress-Core and WordPress-Docs are unaffected.

Scope

composer.lock only. The composer.json constraint already permitted 3.4.1 — CI was installing from the lock file, so it kept resolving to the old version. No workflow or config changes.

Verification

PHPCS was run locally before and after the bump and the findings were diffed: no new violations.

🤖 Generated with Claude Code

Updates wp-coding-standards/wpcs to 3.4.1, which fixes a security issue
in the WordPress.WP.EnqueuedResourceParameters sniff where running PHPCS
over untrusted PHP code could lead to arbitrary command execution on the
scanning host (GHSA-3pwp-g2mj-5p3v).

Also bumps the required transitive dependencies:
- phpcsstandards/phpcsutils to 1.2.3
- phpcsstandards/phpcsextra to 1.5.1

Lock-file only; composer.json constraints already allowed 3.4.1.
Verified locally with PHPCS: no new violations.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Signed-off-by: Filip Ilic <ilic.filip@gmail.com>
@github-actions

Copy link
Copy Markdown

Test on Playground
Test this pull request on the Playground
or download the zip

@github-actions

Copy link
Copy Markdown
Composer package changes
Dev Packages Operation Base Target
dealerdirect/phpcodesniffer-composer-installer Upgraded v1.1.2 v1.2.1
phpcsstandards/phpcsextra Upgraded 1.4.1 1.5.1
phpcsstandards/phpcsutils Upgraded 1.1.2 1.2.3
squizlabs/php_codesniffer Upgraded 3.13.4 3.13.5
wp-coding-standards/wpcs Upgraded 3.2.0 3.4.1

@aristath
aristath merged commit b535381 into develop Jul 29, 2026
11 of 12 checks passed
@aristath
aristath deleted the security/wpcs-3.4.1 branch July 29, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants