Skip to content

fix(security): bump guzzle past advisories and add export-ignore rules [SEC-2534] - #107

Open
oliverlaz wants to merge 2 commits into
GetStream:masterfrom
oliverlaz:oliverlazoroski/sec-2534-sec-22-lockfiledependency-hygiene
Open

oliverlaz wants to merge 2 commits into
GetStream:masterfrom
oliverlaz:oliverlazoroski/sec-2534-sec-22-lockfiledependency-hygiene

Conversation

@oliverlaz

Copy link
Copy Markdown
Member

Part of SEC-2534 (SEC-22: lockfile/dependency hygiene).

Changes

  • guzzlehttp/guzzle: ^7.0 → ^7.15.2. Clears the 9 guzzle advisories (CVE-2026-69246/69245/67354/67355/67353/59883/67339/55767/55568). Guzzle 7.15.2+ needs a patched guzzlehttp/psr7, which clears the 4 psr7 advisories; the SDK doesn't use psr7 directly, so it isn't added as a direct requirement.
  • squizlabs/php_codesniffer (dev): ^3.7 → ^3.13.6 (CVE-2026-67434).
  • composer.lock refreshed with composer update (all minor/patch: guzzle 7.17.0, psr7 2.13.6, php-jwt 7.2.2, phpdotenv 5.8.1, phpunit 10.5.67, phpstan 1.12.34). composer audit reports no advisories (it reported 14 before).
  • New .gitattributes with export-ignore for tests, phpunit.xml, .github/, release-please config, codegen (generate.sh, .spec-version, composer-generated.json), dev tooling (Makefile, lint.sh, phpstan.neon, .env.example, .gitignore), docs/ and composer.lock. Dist archives now contain src/, composer.json, README, CHANGELOG, SECURITY and the migration guides (checked with git archive).

composer.lock for a library

I kept it committed. Composer ignores a library's lock when it's installed as a dependency, so it only pins CI and local dev. That gives reproducible CI and lets Dependabot track it. It's now kept out of the dist archive. The trade-off is that CI only tests the locked versions; a composer update --prefer-lowest leg would also check the declared floors (possible follow-up).

Verification

  • PHP 8.1 (lowest in the CI matrix, via Docker): phpstan analyse clean, phpunit tests --exclude-group integration: 336 tests OK.
  • composer validate passes (only the existing "version field present" warning).

Notes

  • The repo has no LICENSE file although composer.json says MIT; worth adding separately.

…s [SEC-2534]

- Raise guzzlehttp/guzzle to ^7.15.2 and squizlabs/php_codesniffer to ^3.13.6
  and refresh composer.lock; `composer audit` reports no advisories.
- Add .gitattributes so dist archives ship only src/, composer.json and the
  user-facing docs, without tests, CI config, codegen or dev tooling.
@oliverlaz
oliverlaz requested review from itsmeadi and mogita November 25, 2026 11:36
@oliverlaz
oliverlaz marked this pull request as ready for review November 25, 2026 12:39

This branch has not been deployed

No deployments
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