Skip to content

Security: update WPCS to 3.4.1 - #15

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

Security: update WPCS to 3.4.1#15
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

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.0.0 v1.2.1
phpcsstandards/phpcsextra Upgraded 1.2.1 1.5.1
phpcsstandards/phpcsutils Upgraded 1.0.12 1.2.3
squizlabs/php_codesniffer Upgraded 3.11.3 3.13.5
wp-coding-standards/wpcs Upgraded 3.1.0 3.4.1

@github-actions

Copy link
Copy Markdown
Contributor

🔍 WordPress Plugin Check Report

❌ Status: Failed

📊 Report

🎯 Total Issues ❌ Errors ⚠️ Warnings
1 1 0

❌ Errors (1)

📁 readme.txt (1 error)
📍 Line 🔖 Check 💬 Message
0 outdated_tested_upto_header Tested up to: 6.9 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.

🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@aristath
aristath merged commit aef189a into develop Jul 29, 2026
9 of 10 checks passed
@aristath
aristath deleted the security/wpcs-3.4.1 branch July 29, 2026 08:45
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