Skip to content

Update dependency squizlabs/php_codesniffer to v3.13.6 [SECURITY] - #38

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/packagist-squizlabs-php_codesniffer-vulnerability
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/packagist-squizlabs-php_codesniffer-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
squizlabs/php_codesniffer 3.13.53.13.6 age confidence

PHP_CodeSniffer gitblame report command injection via crafted filename

CVE-2026-67434 / GHSA-hmqg-cxww-wqhq

More information

Details

Impact

PHP_CodeSniffer versions before v3.13.6 and v4.0.2 contain a command injection vulnerability in the code creating the Gitblame, Hgblame and Svnblame report(s).

As a result, running PHP_CodeSniffer over untrusted files, for example, in a CI pipeline that scans pull requests, or on a developer machine reviewing third-party code, could result in attacker-controlled shell commands being executed when the Gitblame, Hgblame or Svnblame report(s) would process a file whose name contains shell metacharacters.

  • Users using the default Full report, or any of the other non-*blame reports, are not affected.
  • Users on a runtime platform which does not allow filenames to contain shell metacharacters, such as " and ;, are not affected.
Patched versions

The issue has been fixed in PHP_CodeSniffer v3.13.6 and v4.0.2. We recommend all users upgrade to these versions at their earliest convenience.

Workaround

Users of PHP_CodeSniffer who cannot upgrade immediately should ensure they do not use the Gitblame, Hgblame or the Svnblame reports when scanning untrusted code.

This is especially relevant for CI jobs, pre-commit or review tooling, automated review services, and any service that scans untrusted repositories or uploaded source trees.

Credits

Many thanks to both @​Faze-up and @​edorian for responsibly disclosing this vulnerability.

How can I report a security bug?

Please report security vulnerabilities privately via the "Security and quality" tab on the PHP_CodeSniffer repository.

Severity

  • CVSS Score: 7.3 / 10 (High)
  • Vector String: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

PHPCSStandards/PHP_CodeSniffer (squizlabs/php_codesniffer)

v3.13.6: - 2026-08-06

Compare Source

This is a security release and all users are advised to update their install(s) as soon as possible.

Changed
Fixed
  • SECURITY FIX: Running PHP_CodeSniffer over untrusted files, for example, in a CI pipeline that scans pull requests, or on a developer machine reviewing third-party code, could result in attacker-controlled shell commands being executed when the Gitblame, Hgblame or Svnblame report(s) would process a file whose name contains shell metacharacters. #​1473
Other
  • The GPG signature for the PHAR files has been rotated. The new fingerprint is: 5CB4F77.

Statistics

Closed: 0 issues
Merged: 46 pull requests

Follow @​phpcs on Mastodon or @​PHP_CodeSniffer on X to stay informed.

Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the security label Aug 8, 2026
@renovate renovate Bot changed the title Update dependency squizlabs/php_codesniffer to v3.13.6 [SECURITY] Update dependency squizlabs/php_codesniffer to v3.13.6 [SECURITY] - autoclosed Sep 8, 2026
@renovate renovate Bot closed this Sep 8, 2026
@renovate
renovate Bot deleted the renovate/packagist-squizlabs-php_codesniffer-vulnerability branch September 8, 2026 05:33
@renovate renovate Bot changed the title Update dependency squizlabs/php_codesniffer to v3.13.6 [SECURITY] - autoclosed Update dependency squizlabs/php_codesniffer to v3.13.6 [SECURITY] Sep 8, 2026
@renovate renovate Bot reopened this Sep 8, 2026
@renovate
renovate Bot force-pushed the renovate/packagist-squizlabs-php_codesniffer-vulnerability branch from 2164e74 to 31296af Compare September 8, 2026 12:05
@renovate
renovate Bot force-pushed the renovate/packagist-squizlabs-php_codesniffer-vulnerability branch from 31296af to a14cbcf Compare September 16, 2026 05:06
@renovate
renovate Bot force-pushed the renovate/packagist-squizlabs-php_codesniffer-vulnerability branch from a14cbcf to 088fdd7 Compare September 23, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants