A middleware bypass is behind a whole series of security advisories published for widely used web frameworks between November 20 and 21, 2026. The Fastify team disclosed five flaws in the @fastify/express plugin and another one in @fastify/middie, five of them rated critical with a CVSS score of 9.1. Shortly afterwards, the PHP framework Livewire followed with a flaw of moderate severity. The pattern is the same in every case: a request reaches the actual handler while the middleware meant to enforce authentication or authorization is skipped. Updates are available: @fastify/express 4.0.10, @fastify/middie 9.3.8 and Livewire 3.8.12 and 4.4.9.
Middleware bypass in @fastify/express: five flaws, one update
@fastify/express is a compatibility layer that lets Fastify applications keep using Express middleware. That is handy during migrations, but it creates a weak spot: two components decide independently which path a request targets. Fastify’s router, find-my-way, determines which handler runs. Express decides which middleware applies. If the two readings differ, the handler runs without the intended check. According to the advisories published on November 20, the default settings are enough in most cases.
All five flaws are fixed in version 4.0.10:
- CVE-2026-133120 (GHSA-w877-hjcp-88rc), critical: since version 4.0.3, the plugin decodes the URL before Express parses it. A backslash combined with whitespace or a hash character, as in
/tenant/x%5C%20/admin, makes Express miss the middleware.%25is decoded twice, so middleware and handler see different parameter values. In every release, Fastify also routes a request such asGET *adminto/admin, while Express does not apply the middleware mounted on/admin. - CVE-2026-133867 (GHSA-84w6-xrf3-f8q8), critical: when middleware is mounted with a regular expression under a parameterized prefix such as
/tenant/:tenantId, the plugin treats the placeholder as literal text. The middleware never matches. Versions from 4.0.7 are affected. - CVE-2026-129504 (GHSA-f44m-4qwg-5587), critical: the plugin prefix and the middleware mount path are joined by plain string concatenation. If the prefix ends with a slash or the mount path lacks its leading slash, the middleware no longer lines up with the route. No crafted request is needed.
- CVE-2026-124626 (GHSA-662w-h4p6-jq4p), critical: Fastify accepts empty parameters, while the Express matching logic requires at least one character. A request such as
GET /tenant/reaches the handler but not the middleware mounted on/tenant/:tenantId. Versions from 4.0.5 are affected. - GHSA-6rmc-f24g-hmp6, high (CVSS 7.4): with case-insensitive routing enabled, Fastify folds the Unicode Kelvin sign (U+212A) into a plain k, while Express does not. Only mount paths containing a k are affected, and only with the option
caseSensitive: false.
This is not the first round of its kind. On October 27, the project had already disclosed a similar bypass via absolute-form request targets as GHSA-6h42-57hq-9746 (CVE-2026-112362). The new advisories explicitly reference it and another earlier flaw.
@fastify/middie is affected too
@fastify/middie is Fastify’s own middleware engine and shares the same underlying problem. Advisory GHSA-gcf6-j9m3-p97x (CVE-2026-133250, CVSS 9.1) describes three request forms where middie and the router see different paths: empty parameter or wildcard values such as /tenant//admin or /files/, request targets starting with an asterisk such as *admin, and a literal percent sign in a mount path that middie decodes once more. All versions up to 9.3.7 are affected; the fix is in 9.3.8. Version 9.3.7 had closed three other bypass flaws only on November 18, including one based on Unicode case folding.
Livewire: changing the host skips persistent middleware
On November 21, the Livewire maintainers published advisory GHSA-vw9g-2c4c-g767. Livewire is a popular framework for interactive interfaces in Laravel applications. Components send their actions to a central update endpoint. To make sure the original page’s middleware also applies to these updates, Livewire stores the path and method of the first request in the component’s signed snapshot and reapplies the so-called persistent middleware.
However, neither the original host nor the resolved route is stored. If an attacker submits the update through another hostname served by the same application, a domain-constrained route no longer matches. According to the advisory, Livewire handles this as if there were no route and runs the action without the persistent middleware. The result can be unauthorized access to or modification of data, including bypasses of tenant isolation.
The bar is higher than with Fastify, though, and the rating is “Moderate” with a CVSS score of 6.8. Only applications where three conditions meet are affected: a component is rendered on a domain-constrained route, access control relies on persistent middleware, and the update endpoint is reachable through another host. The attacker also needs a valid signed snapshot, but does not have to modify it. The behavior was introduced in Livewire 3.7.4. Affected are versions from 3.7.4 before 3.8.12 and from 4.0.0 before 4.4.9. No CVE number had been assigned at the time of publication.
The origin of the report stands out: according to the advisory, it came from Anthropic’s Claude-powered OSS scanner. The new versions 3.8.12 and 4.4.9 were released overnight into November 21. The maintainers recommend refreshing already open pages after deploying the update. Laravel teams have dealt with authorization flaws recently, for example the TokenGuard vulnerability in Laravel.
The common pattern
All of these flaws follow the same principle, which security researchers call a parser differential: two parts of an application interpret the same request differently. In Fastify’s case, the router and the middleware matcher decode, normalize or join paths differently. In Livewire’s case, the reconstruction of the original request is missing a piece of information. In both cases, the middleware is meant to act as a gatekeeper but can be bypassed because it does not make exactly the same decision as the router.
Framework-level flaws hit many applications at once, even when their own code is sound. That was also shown by the Next.js security release in early November, where among other issues a cache flaw could disclose data.
What developers should do now
- Update: @fastify/express to 4.0.10, @fastify/middie to 9.3.8, Livewire to 3.8.12 or 4.4.9. Check lockfiles, since these plugins often arrive as indirect dependencies.
- Move authorization behind the router: for Fastify, the advisories recommend enforcing authentication in a hook such as
preHandlerthat runs after the router has resolved the request, and basing the decision onrequest.routeOptions.urlrather thanrequest.url. - Filter in the meantime: as a stopgap for @fastify/express, the project suggests rejecting request targets that start with an asterisk or contain a backslash in an early
onRequesthook. - Harden Livewire: restrict the update endpoint so that snapshots issued on one host cannot be submitted through another, and authorize sensitive actions directly inside the component as well.
Our take
Taken on their own, these are framework updates of the kind that ship every week. The cluster, however, exposes a weakness many applications share: authorization that lives only in path-based middleware depends on every component involved reading paths in exactly the same way. Compatibility layers such as @fastify/express multiply the places where that can go wrong. A second check where the decision is ultimately made, in the handler or the action itself, is more robust. The fact that at least the Livewire flaw was reported by an AI-powered scanner fits a trend that is likely to increase the pace of such advisories further.




