squizlabs/php_codesniffer vulnerabilities

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.

Registry
Composer
Latest
4.0.4
License
BSD-3-Clause

3 known advisories

The latest version, 4.0.4, is not affected by any of them. Projects on older versions may be.

Update to the latest version:composer require squizlabs/php_codesniffer:^4.0.4

Is your project on an affected squizlabs/php_codesniffer?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for squizlabs/php_codesniffer

  • HighCVE-2026-67434GHSA-hmqg-cxww-wqhq6 Aug 2026

    PHP_CodeSniffer gitblame report command injection via crafted filename

    Affected
    <3.13.6 · >=4.0.0 <4.0.2
    Fixed in
    3.13.6, 4.0.2
  • HighGHSA-3988-h75v-hwf626 Mar 2022

    Arbitrary shell execution

    Affected
    >=3.0.0 <3.0.1
    Fixed in
    3.0.1
  • HighGHSA-mhfv-8rc9-w38c26 Mar 2022

    Arbitrary shell execution

    Affected
    >=1.0.0 <2.8.1
    Fixed in
    2.8.1

Is your squizlabs/php_codesniffer version vulnerable?

Which of your client projects still run an old squizlabs/php_codesniffer?

NPMscan reads the composer.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other Composer packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the Composer registry.