Skip to content

Patch the Laravel example's locked Symfony advisories - #502

Merged
rmcdaniel merged 1 commit into
mainfrom
general/sdk-php-example-symfony-advisories
Nov 26, 2026
Merged

rmcdaniel merged 1 commit into
mainfrom
general/sdk-php-example-symfony-advisories

Conversation

@rmcdaniel

Copy link
Copy Markdown
Member

composer audit --locked in examples/laravel-http started failing on main. That fails the "Laravel example lock audit" job on every PR, including #501. It reports nine advisories across symfony/http-client (CVE-2026-133750 and others), symfony/http-kernel, symfony/mailer and symfony/routing. The same Symfony advisories were patched in durable-workflow/server by #1357.

Change

Only examples/laravel-http/composer.lock changes. It is a minimal composer update of the four packages plus the 7.4 siblings their fixed releases require:

  • run with the pinned composer:2.10.3 image;
  • PHP 8.3.35 taken from config.platform;
  • --no-install --no-scripts --no-plugins;
  • --ignore-platform-req=ext-sockets, because the composer image lacks that extension and RoadRunner requires it. This changes nothing in the lock.
Package From To
symfony/http-client 7.4.23 7.4.24
symfony/http-kernel 7.4.23 7.4.24
symfony/http-foundation 7.4.23 7.4.24
symfony/routing 7.4.23 7.4.24
symfony/mailer 7.4.19 7.4.24
symfony/mime 7.4.22 7.4.24
symfony/var-dumper 7.4.21 7.4.24
symfony/error-handler 7.4.20 7.4.22

All of these are patch releases within 7.4. The example's composer.json is unchanged. The job's command, composer audit --locked --no-plugins --no-scripts --no-interaction, now reports "No security vulnerability advisories found."

🤖 Generated with Claude Code

`composer audit --locked` on `examples/laravel-http` started failing on
main, which fails the "Laravel example lock audit" job on every PR. It
reported nine advisories across four packages: symfony/http-client,
symfony/http-kernel, symfony/mailer and symfony/routing.

This is a minimal `composer update` of those packages and the 7.4
siblings their fixed releases require. It was run with the pinned
composer:2.10.3 image, PHP 8.3 from `config.platform`, and
`--ignore-platform-req=ext-sockets`, because the composer image lacks
that extension. Every change is a patch release within 7.4. The
example's composer.json is unchanged, and the audit now reports no
advisories. The same advisories were patched in durable-workflow/server
by #1357.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@rmcdaniel

Copy link
Copy Markdown
Member Author

Independent review: PASS at head 60b0e4d

What I verified, on fresh checkouts of main (a1787a5) and this head:

  • Audit. I ran the job's command, composer audit --locked --no-plugins --no-scripts --no-interaction, with the pinned composer:2.10.3 image. On main it reports 9 advisories across symfony/http-client (4), symfony/http-kernel (1), symfony/mailer (2) and symfony/routing (2), and exits 1. At this head it reports "No security vulnerability advisories found." and exits 0.
  • Scope. Only examples/laravel-http/composer.lock changes. composer.json is byte-identical and the content-hash (841dce98...) is unchanged. All 99 packages are still present, with none added or removed. Only the eight listed Symfony packages moved. Each move is a patch release within 7.4: http-client, http-kernel, http-foundation and routing go from 7.4.23 to 7.4.24, mailer from 7.4.19 to 7.4.24, mime from 7.4.22 to 7.4.24, var-dumper from 7.4.21 to 7.4.24, and error-handler from 7.4.20 to 7.4.22. The top-level lock fields (platform, platform-overrides, plugin-api-version) are unchanged.
  • Packagist. For all eight packages, the source reference, dist reference, dist URL and require block match the repo.packagist.org p2 metadata.
  • Platform. Every moved package requires php >=8.2, so it is compatible with config.platform PHP 8.3.35. composer validate passes. composer check-platform-reqs --lock reports only ext-sockets as missing in the composer image, which is the known RoadRunner/goridge requirement.
  • Reproduction. I ran a partial update of the same eight packages from main's lock with --no-install --no-scripts --no-plugins --ignore-platform-req=ext-sockets. It produces a lock that is byte-identical to this head. I also resolved again without the ignore flag, declaring ext-sockets in a scratch copy of config.platform. That run gives identical packages and packages-dev, so ignoring ext-sockets does not change the lock.
  • CI at this head: 32 pass and 1 skipped. The skipped job is "Connected cooperative cancellation", which is also skipped on main. "Laravel example lock audit", "Target branch qualification" and "SonarCloud Code Analysis" all pass.

One non-blocking note on the description. Of the siblings, only http-foundation is strictly required, because http-kernel 7.4.24 requires ^7.4.24. A partial update of the four advised packages plus http-foundation also clears the audit. The mime, var-dumper and error-handler bumps are optional patch releases from the same 7.4 train, and durable-workflow/server#1357 took the same set. I see no problem keeping them.

@rmcdaniel
rmcdaniel merged commit 58b73d0 into main Nov 26, 2026
36 checks passed
@rmcdaniel
rmcdaniel deleted the general/sdk-php-example-symfony-advisories branch November 26, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant