Skip to content

Security: update WPCS to 3.4.1 - #768

Merged
ilicfilip merged 1 commit into
developfrom
security/wpcs-3.4.1
Jul 28, 2026
Merged

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

Conversation

@ilicfilip

Copy link
Copy Markdown
Collaborator

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

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor
Composer package changes
Dev Packages Operation Base Target
dealerdirect/phpcodesniffer-composer-installer Upgraded v1.2.0 v1.2.1
phpcsstandards/phpcsextra Upgraded 1.5.0 1.5.1
phpcsstandards/phpcsutils Upgraded 1.2.1 1.2.3
wp-coding-standards/wpcs Upgraded 3.3.0 3.4.1

@github-actions

Copy link
Copy Markdown
Contributor

✅ Code Coverage Report

Metric Value
Total Coverage 31.62% 📉
Base Coverage 31.62%
Difference 📈 0.00%

⚠️ Coverage below recommended 40% threshold

🎉 Great job maintaining/improving code coverage!

ℹ️ About this report
  • All tests run in a single job with Xdebug coverage
  • Security tests excluded from coverage to prevent output issues
  • Coverage calculated from line coverage percentages

@ilicfilip
ilicfilip merged commit 42a0284 into develop Jul 28, 2026
22 of 23 checks passed
@ilicfilip
ilicfilip deleted the security/wpcs-3.4.1 branch July 28, 2026 15:29
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.

1 participant