Skip to content

Security: update WPCS to 3.4.1 - #1

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

Security: update WPCS to 3.4.1#1
aristath merged 1 commit into
mainfrom
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>
@aristath
aristath merged commit bb5a3c3 into main Jul 29, 2026
3 of 6 checks passed
@aristath
aristath deleted the security/wpcs-3.4.1 branch July 29, 2026 08:46
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