Skip to content
Putting technology to work.
Insights to guide decisions and action.

Search articles

Livewire 4.4.9 fix: what to check on domain-specific routes

Table of contents · 7 items

If your Laravel business system uses Livewire (including Filament admin panels) and splits routes into subdomains or per-tenant domains with Route::domain(), the November 21 Livewire update is worth checking. The fix concerns whether the authentication and authorization middleware applied when the page was opened is applied again to the "update" requests Livewire sends each time a user interacts with the screen (buttons or inputs).

In 4.4.9 and 3.8.12, Livewire now rejects these update requests with a 404 when they are sent to a different scheme, host, or route from the one where the page was rendered. Before the fix, if no route for the original path was found on the host that received the update, the code applied none of the middleware it was supposed to carry over.

On the same day, November 21, the advisory "Changing the Host can bypass Livewire persistent middleware" (GHSA-vw9g-2c4c-g767, severity Moderate, CVSS 6.8) was published in the Livewire repository. It affects the 3.x line from 3.7.4 onward and the 4.x line, and the fixed versions are 3.8.12 and 4.4.9. As of November 30, it is not listed in the GitHub Advisory Database or in the Packagist advisory list that composer audit refers to.

In this article, we use the advisory, the fix commits and tests in the Livewire repository, and the official documentation (docs/security.md) to explain what changed and which setups you should check. We did not verify this by running Livewire's tests.

How "Persistent Middleware" works

After a Livewire component is first rendered as part of a page, it sends a request to the update endpoint with each interaction (by default, /livewire-xxxx/update in the 4.x line and /livewire/update in the 3.x line). This endpoint is a separate route from the page's route.

According to the official documentation (docs/security.md), Livewire reapplies the middleware applied during the initial page load to subsequent update requests. This is called "Persistent Middleware," and the documentation explains that it protects against cases where "authorization rules or user permissions change after the initial page load." Seven middleware, including Authenticate, Authorize, and AuthenticateSession, are carried over by default, and you add your own middleware with Livewire::addPersistentMiddleware().

To reapply them, Livewire records the path and method used at render time (stored with a signature in the snapshot), looks up the route matching that path, and collects the route's middleware. This fix concerns the "look up the route" part.

Differences before and after the fix

Before the fix, the code (PersistentMiddleware.php) worked as follows.

  • Based on the request that received the update (with its host and scheme), replace only the path and method with the values from render time, then look up the route
  • If no route is found (NotFoundHttpException), clear the middleware to reapply with return [];

By default, the update endpoint is registered without restricting the domain (Route::post($path, $handle)). So if you limit a route to a specific host with Route::domain('app.example.test'), sending an update to another host that reaches the same app means no route for the original path is found on that host, and the middleware is not applied.

The fix in 4.4.9 and 3.8.12 (commits f68bcad1 and fd1466f6 in the 4.x line) added the following three points.

  • At render time, also record the scheme and host (origin) and the route's uri and domain in the snapshot
  • Return 404 if the scheme and host that received the update differ from the recorded ones
  • Return 404 if the route found on the host that received the update differs from the recorded route. Also return 404 if no route is found, if only a route differing in method exists, or if the fallback route is matched

Diagram showing, according to the added tests, when Livewire 4.4.9 and 3.8.12 accept an update request and when they return 404. An update with the same scheme, host, and route as at render time is accepted if the middleware allows it. It is also accepted if there was no route at render time and there is still no route. A different host (a host with no route, a host with an unprotected route on the same path, or another tenant on the same {tenant} domain), a changed scheme, the fallback route, a route differing only in method, and old snapshots without origin and route return 404

The added tests use a setup where the middleware denies access (equivalent to a user whose permissions have been removed) and confirm that each of the following updates returns 404 and that the component's logic is never called.

  • Send an update for a component rendered on app.example.test to example.test, which has no route
  • example.test has an unprotected route on the same /protected path
  • Render on acme.example.test with the {tenant}.example.test route and send to globex.example.test
  • Change to https and send

When sent to the same host, the middleware works as it did before the fix, and the result is 403.

Affected configurations

The advisory states that affected apps are those where all three of the following apply.

  • Components are rendered on domain-restricted routes (subdomains or per-tenant domains with Route::domain())
  • Access control relies on Livewire's Persistent Middleware (the route's auth and can:, tenant membership checks, and so on)
  • The update endpoint can also be reached from other hostnames the same app responds to (the bare domain, another subdomain, an IP address, a test hostname, and so on)

An attack requires a correctly signed snapshot, but the snapshot does not need to be tampered with. In other words, it is enough to take the snapshot obtained by opening a page and send it as is to another host (editorial interpretation). The advisory lists the impact as bypassing route authorization or tenant isolation to view or modify data. It says the problematic logic was introduced in 3.7.4, so the 3.x line through 3.7.3 and the 2.x line are not affected.

Conversely, if routes are not split by domain and only one host reaches the app, we think the "route not found" state is unlikely to occur even with the pre-fix code (editorial interpretation).

As workarounds until you upgrade, the advisory lists the following two.

  • Restrict the update endpoint so that a snapshot issued on one host cannot be sent from another host of the same app
  • For important operations, do not rely only on route middleware; check authorization inside the component's logic (with #[Authorize], $this->authorize(), and so on)

We confirmed the pre-fix behavior from the advisory's description and the code diff; we did not reproduce it by running Livewire's tests.

What happens after you upgrade

What you should know before upgrading is the 404 right after the update. One of the added tests confirms that old-format snapshots that do not record origin and route return 404.

Pages rendered with a pre-fix version do not have these two in their snapshots. So if a user interacts with a page that has been open since before the deployment, we expect the update request to return 404. The release notes for 4.4.9 and 3.8.12 also say, "Refresh already-open pages after deploying the update." Reloading the page gives it a new-format snapshot. In systems where many users keep the admin panel open while they work, it helps to prepare by announcing the deployment time and by being ready to tell users who contact you after the deployment to reload the page (editorial suggestion).

Note that for components rendered where there is no route, such as error pages, an additional commit in the same release (fd1466f6) allows updates to continue as before as long as "there is still no route at that path."

Steps to check (editorial suggestion)

  1. Check the version. Check the version with composer show livewire/livewire. The fixed versions are 4.4.9 or later in the 4.x line and 3.8.12 or later in the 3.x line (in the 3.x line, 3.7.4 and later are affected). As of November 30, the latest versions are 4.4.10, released on November 24, in the 4.x line and 3.8.12 in the 3.x line
  2. Find routes split by domain. Use the following to find Route::domain() and tenant routes
grep -rn "Route::domain\|->domain(" routes/ app/ --include=*.php
php artisan route:list --json   # 各ルートの domain と middleware を見る
grep -rn "addPersistentMiddleware\|setUpdateRoute" app/ config/ --include=*.php
  1. Check which hosts reach the app. Check the hostnames that reach the app in your web server and load balancer settings. If requests arrive with unexpected hostnames, also consider configuring them to be blocked there
  2. Update and check interactions on screen. Upgrade to 4.4.10 (3.8.12 in the 3.x line) in staging, and confirm that Livewire interactions work on each domain's screens and that interactions by users whose permissions have been removed are blocked. For the production deployment, prepare for 404s on pages left open

Updates to Filament admin panel components were covered in our article on Filament Curator. November updates to Laravel and Symfony components are summarized in our article on Symfony's November fixes.

Scope of verification

On November 27, 2026, we checked the diffs of the fix commits (f68bcad1, fd1466f6, and 37b211b4, plus 6e208eb6, b7b7eb39, and f1a9e71d in the 3.x line) in the livewire/livewire repository (tags v4.4.8 to v4.4.10, v3.8.11, v3.8.12, and v2.12.8), the added tests (src/Mechanisms/PersistentMiddleware/UnitTest.php), the registration of the update endpoint (HandleRequests.php), docs/security.md, the publication dates and advisory API on Packagist, github/advisory-database, and FriendsOfPHP/security-advisories (document research). On November 30, we rechecked the text of the repository advisory (GHSA-vw9g-2c4c-g767), whether it is listed in the GitHub Advisory Database and the Packagist advisory API, the release notes for 4.4.9, 4.4.10, and 3.8.12, and the latest version on Packagist. We did not run the tests or reproduce the behavior before and after the fix. The 404 right after the update is the editorial team's interpretation of the diffs, tests, and release notes.

For maintenance of business systems built with Laravel and Livewire or reviews of multi-tenant setups, please contact us through our consultation on development, AI, and automation.

References

Share this articleXFacebook
Kakeru Suzuki

Fascinated by the possibilities of technology, has had a deep interest in programming and digital art since student days

Turn this article's theme into your company's next step

Concrete steps forward for your organization.

We organize your desired architecture, legacy systems, and operational requirements to formulate your next steps toward execution.

  • Desired architecture
  • Integration with existing environments
  • Operational requirements
Consult on development & operations initiatives

You can consult with us from the initial conceptual stage. Details from this article will be carried over to the inquiry form.

Receive the latest articles by email