Skip to content

Fix deprecations from Livewire updates without a page path and update dependencies with security advisories - #397

Merged
Cannonb4ll merged 3 commits into
ploi:mainfrom
NathanGeerinck:fix/security-and-deprecations
Nov 25, 2026
Merged

Cannonb4ll merged 3 commits into
ploi:mainfrom
NathanGeerinck:fix/security-and-deprecations

Conversation

@NathanGeerinck

Copy link
Copy Markdown
Member

In production we saw two deprecations from Livewire's persistent middleware: ltrim(): Passing null to parameter #1 at PersistentMiddleware.php:170 and strtoupper(): Passing null to parameter #1 in Request::getMethod().

The cause: when a request to the Livewire update endpoint fails (a malformed payload is answered with abort(404)), the app renders its 404 page. That page mounts the header, notifications and spotlight-search components, and on the update route Livewire signs them without a path and method. Livewire shows that response in its error modal and boots the components there, so every update they send replays the persistent middleware with a null path and method.

  • Livewire 4.4.8 to 4.4.10. Since 4.4.9 Livewire rejects a snapshot without a path or method with a 404.
  • HTTP errors on the Livewire update route are answered with the plain status text, so they no longer render a page with components on it. Other routes keep the app's error pages.

The first commit updates the packages composer audit flags in the current lock (targeted composer update --with-dependencies, all within the existing constraints):

composer audit is clean afterwards. Both changes touch composer.lock in overlapping packages, so they're in one PR with separate commits; happy to split them if you prefer.

Updates laravel/framework, web-auth/webauthn-lib, symfony/filesystem, symfony/html-sanitizer, symfony/http-client, symfony/http-foundation, symfony/http-kernel, symfony/routing, symfony/serializer and symfony/yaml to the releases that fix their open advisories.
… path is rejected

Livewire 4.4.8 replayed the persistent middleware for such a snapshot with a null path and method, which raised ltrim() and strtoupper() deprecations. Since 4.4.9 it answers with a 404.
…stead of an app page

The 404 page mounts the header, notifications and spotlight search components. Rendered for a failed update, they were signed without the path and method of a page, and Livewire boots that page in its error modal, so every update those components sent was replayed with a null path.
@Cannonb4ll
Cannonb4ll merged commit a88ed2b into ploi:main Nov 25, 2026
3 checks passed
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