Back Rescana Fastify Middie and Express Middleware Bypass: Update to 9.3.8 and 4.0.10 Now
Status: On 20 November 2026 , Fastify published GitHub security advisories for a cluster of path-scoped middleware-bypass flaws in two compatibility plugins: @fastify/middie , the middleware engine, and @fastify/express , which lets Express middleware run inside Fastify. The OpenJS Foundation, the CVE numbering authority (CNA), published the matching CVE records on 21 November 2026 . In each case the plugin and Fastify's router can disagree on the request path, so middleware mounted for authentication, authorization or rate limiting is skipped while the route handler still runs. OpenJS rates five of the issues Critical , CVSS 3.1 9.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N): CVE-2026-133250 in @fastify/middie, fixed in 9.3.8 , and CVE-2026-133120 , CVE-2026-129504 , CVE-2026-124626 and CVE-2026-133867 in @fastify/express, all fixed in 4.0.10 .
The official @fastify/express 4.0.10 security release also fixes CVE-2026-129850 , which OpenJS rates High , CVSS 3.1 7.4 , and which applies when case-insensitive routing is enabled. As of 01:08 EST on 23 November 2026 , no source we opened reports exploitation. CVE-2026-133250 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. CVE-2026-133120 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. CVE-2026-129504 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. CVE-2026-124626 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. CVE-2026-133867 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. CVE-2026-129850 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. We read catalogVersion 2026.11.20 (1,790 entries, released 12:48 EST on 20 November 2026) at 01:08 EST on 23 November 2026.
@fastify/middie and @fastify/express sit between incoming requests and Fastify's router. Applications often mount Express-style middleware on a path in order to require a login, a role, or a rate limit before a handler runs. The advisories say those plugins can be convinced to skip that middleware while Fastify still dispatches the route, so an unauthenticated client can reach a handler that was meant to be protected. OpenJS, as CNA, says no special configuration is required for the Critical issues, except that CVE-2026-133867 needs a parameterized plugin prefix and a regular-expression mount. CVE-2026-129850, which OpenJS rates High, needs case-insensitive routing.
The middie advisory, GHSA-gcf6-j9m3-p97x , published at 13:14 EST on 20 November 2026 , covers all @fastify/middie releases through 9.3.7 . The fix is 9.3.8 or later. Operators who already installed 9.3.7 after an earlier middie security release on 18 November 2026 are still in this CVE's affected range. The four Critical @fastify/express CVEs are fixed in 4.0.10 or later, published at 13:00 EST on 20 November 2026 . The same 4.0.10 release also fixes CVE-2026-129850, which OpenJS rates High. Affected ranges differ by CVE and are listed below; the broadest Critical range, CVE-2026-133120, is every release before 4.0.10. When we checked the npm registry, the latest releases were 9.3.9 and 4.0.12 . Those later releases include the fixes; the advisories' fixed versions remain 9.3.8 and 4.0.10.
NVD has imported all six CVE records ( 12:16 EST on 21 November 2026 ). Each record's status is Received, not Analyzed, and NVD currently shows the OpenJS CVSS 3.1 score as Secondary. There is no separate NVD score. FIRST's EPSS API returned low scores dated 22 November 2026 for all six CVEs (0.00488 to 0.00792, 42.9th to 57.3rd percentile). A of public GitHub repository metadata for these CVE IDs on 23 November 2026 returned no public repository. We do not link to or describe proof-of-concept material.
Inventory @fastify/middie and @fastify/express in application lockfiles, container images and deployed Node services, including transitive copies.
Update @fastify/middie to 9.3.8 or later , and @fastify/express to 4.0.10 or later . Those are the vendor-fixed releases for this cluster. The registry latest releases when we checked (9.3.9 and 4.0.12) also include the fixes.
If you cannot update immediately , apply the workaround most of the advisories publish: enforce authentication in a Fastify hook, such as preHandler, that runs after the router has resolved the request; the middie advisory and GHSA-w877-hjcp-88rc add that the decision should rest on the matched route rather than the raw request URL. This does not replace the update (Rescana guidance).
After you update , restart the processes that loaded the old packages so they pick up the new code (Rescana guidance).
Technical Information
This section is limited to what Fastify and the CNA have published. We do not describe an exploit or reproduce a request.
All six CVE records are assigned by the OpenJS Foundation. Each Critical issue is scored CVSS 3.1 9.1 with no privileges required and no user interaction. The shared idea, in the CNA's wording, is an interpretation conflict: the plugin matches path-scoped middleware against a path that can differ from the path Fastify's router uses. When the two disagree, the handler runs and the middleware does not.
For CVE-2026-133250 (@fastify/middie, CWE-288 and CWE-436), the CNA and GHSA-gcf6-j9m3-p97x say the mismatch is triggered by empty parameter or wildcard values, by request targets that do not begin with a slash, and by literal percent characters in a mount path. All releases through 9.3.7 are affected. Version 9.3.8 matches middleware against the path the router actually used.
For @fastify/express , OpenJS describes four Critical issues, all fixed in 4.0.10. CVE-2026-133120 (CWE-174, CWE-436; all versions before 4.0.10) can pass Express a request URL that does not match the path the router dispatched, including after certain URL-decoding and normalization steps. CVE-2026-129504 (CWE-436, CWE-863; versions 4.0.0 through 4.0.9) can join a plugin prefix to a mount path so Express never matches the route Fastify serves; the CNA says string, array and regular-expression mounts are all affected, and that no crafted request is required. CVE-2026-124626 (CWE-287, CWE-436; versions 4.0.5 through 4.0.9) requires a non-empty dynamic segment when matching middleware, while the router accepts an empty parameter or wildcard. CVE-2026-133867 (CWE-287, CWE-436; versions 4.0.7 through 4.0.9) does not rewrite regular-expression mounts for a parameterized plugin prefix, so the matcher never hits the real path.
The 4.0.10 security release also fixes CVE-2026-129850 (CWE-178, CWE-863), versions 4.0.0 through 4.0.9. OpenJS rates it High, CVSS 3.1 7.4, and says it applies when Fastify routing is configured to be case-insensitive: the router and the plugin can then disagree on how some non-ASCII letters in a path fold, so middleware mounted on that path is skipped. It is not one of the 9.1 issues, but it is part of the same 4.0.10 update.
The official @fastify/express 4.0.10 release notes list these five express CVEs in one security-release table. Credits in the CVE records include the reporters kleju13, eliteaja11-dev and rootsys-research, and the finders hwi-yong and zachariah-mithani. mcollina is credited as finder on CVE-2026-133120 and as remediation developer on the other five records; UlisesGascon is credited on the remediation of all six. The middie CVE record names mcollina and UlisesGascon on the remediation and does not name a finder.
Affected Products and Fixed Versions
@fastify/middie: all versions through 9.3.7 are affected by CVE-2026-133250. Fixed in 9.3.8 . The npm registry listed 9.3.9 as latest when we checked on 23 November 2026. Vendor: Fastify (package scope @fastify). CNA: OpenJS Foundation.
@fastify/express: update every release before 4.0.10 . CVE-2026-133120 covers all versions before 4.0.10. CVE-2026-129504 and CVE-2026-129850 cover 4.0.0 through 4.0.9. CVE-2026-124626 covers 4.0.5 through 4.0.9. CVE-2026-133867 covers 4.0.7 through 4.0.9. The npm registry listed 4.0.12 as latest when we checked.
Not in scope of this post: core Fastify itself is not the affected product in these CVE records. An older live Rescana post covers a different plugin, @fastify/static, and is not this cluster.
How to Find Your Exposure
In each Node application, package manifests and lockfiles for @fastify/middie and @fastify/express , including copies pulled in by other plugins. Record the resolved version.
Treat any @fastify/middie release through 9.3.7, and any @fastify/express release before 4.0.10, as in the CNA's affected range for at least one CVE in this cluster.
Note whether the application mounts path-scoped middleware for authentication, authorization or rate limiting, whether it uses plugin prefixes (including parameterized prefixes), and whether case-insensitive routing is enabled. Those details change which issues apply, but they are not a reason to delay the update (Rescana guidance).
If a vulnerable version was running, review access and application logs for unexpected requests to routes that were meant to sit behind that middleware (Rescana guidance).
Workaround and Mitigation
The vendor's published remediation is to upgrade @fastify/middie to 9.3.8 or later and @fastify/express to 4.0.10 or later , then restart the processes that loaded the packages.
Five of the six GitHub advisories (all except GHSA-f44m-4qwg-5587) publish a temporary workaround: enforce authentication or authorization in a Fastify hook, such as preHandler, that runs after the router has resolved the request. The middie advisory and GHSA-w877-hjcp-88rc add that the decision should rest on the matched route rather than the raw request URL. GHSA-f44m-4qwg-5587 instead advises writing mount paths so they join cleanly to the plugin prefix, and GHSA-6rmc-f24g-hmp6 notes that leaving routing case-sensitive (the default) avoids CVE-2026-129850. These workarounds do not replace the 9.3.8 and 4.0.10 updates (Rescana guidance).
If an unexpected request may have reached a protected handler while a vulnerable version was running, rotate credentials and session material that handler could have exposed, and review accounts created or changed in that window (Rescana guidance).
18 November 2026: GitHub's @fastify/middie 9.3.7 release notes describe an earlier security release for different middie issues. 9.3.7 remains in the affected range for CVE-2026-133250.
20 November 2026, 10:47 EST: @fastify/middie 9.3.8 is published on GitHub (npm timestamp 10:54 EST). This is the fixed release for CVE-2026-133250.
20 November 2026, 12:59-13:00 EST: @fastify/express 4.0.10 is published (GitHub release 12:59 EST, npm 13:00 EST) as a security release for the five express CVEs in this post.
20 November 2026, 13:00-13:14 EST: Fastify publishes the GitHub security advisories (express advisories around 13:00-13:01 EST; GHSA-gcf6-j9m3-p97x for middie at 13:14 EST).
21 November 2026, 11:46-12:08 EST: OpenJS publishes the six CVE records. CVE-2026-133250 is first, at 11:46 EST.
21 November 2026, 12:16 EST: NVD imports the six records with status Received and the OpenJS scores as Secondary.
23 November 2026, 01:08 EST: Our check of catalogVersion 2026.11.20 (1,790 entries) found none of these six CVEs listed. No source we opened reports exploitation.
Third-Party Risk (TPRM) Angle
These are Fastify plugins, not a single appliance. The people to ask are suppliers who build or host Node services for you: engineering vendors, SaaS platforms written in Fastify, and integrators who expose HTTP APIs on your behalf (Rescana guidance). A dependency on Fastify itself does not tell you whether these plugins are also present.
Questions that give a usable answer:
Do any of the services you run for us depend on @fastify/middie or @fastify/express , including transitive dependencies?
What resolved versions are in production? If middie is 9.3.7 or earlier, or express is older than 4.0.10, on what date will you update to 9.3.8 or later and 4.0.10 or later?
Do those services mount path-scoped middleware for authentication, authorization or rate limiting, and have you restarted processes after the update?
Will you tell us whether you found unexpected requests to routes that were meant to sit behind that middleware while a vulnerable version was running?
Need help working out which suppliers run these Fastify plugins on services that handle your data? Our team can help you prioritize them and track their answers. Talk to an expert
Fastify: GHSA-gcf6-j9m3-p97x, @fastify/middie path-scoped middleware bypass (published 13:14 EST, 20 November 2026; CVE-2026-133250; affected through 9.3.7; fixed in 9.3.8).
Fastify: GHSA-w877-hjcp-88rc, @fastify/express URL decoding and normalization mismatch (published 13:01 EST, 20 November 2026; CVE-2026-133120; fixed in 4.0.10).
Fastify: GHSA-f44m-4qwg-5587, @fastify/express prefix and mount path join mismatch (published 13:01 EST, 20 November 2026; CVE-2026-129504; versions 4.0.0 through 4.0.9; fixed in 4.0.10).
Fastify: GHSA-662w-h4p6-jq4p, @fastify/express empty route parameters and wildcards (published 13:00 EST, 20 November 2026; CVE-2026-124626; versions 4.0.5 through 4.0.9; fixed in 4.0.10).
Fastify: GHSA-84w6-xrf3-f8q8, @fastify/express regular-expression mounts under parameterized prefixes (published 13:00 EST, 20 November 2026; CVE-2026-133867; versions 4.0.7 through 4.0.9; fixed in 4.0.10).
Fastify: GHSA-6rmc-f24g-hmp6, @fastify/express Unicode case folding (published 13:01 EST, 20 November 2026; CVE-2026-129850; High 7.4; versions 4.0.0 through 4.0.9; fixed in 4.0.10; included because it is in the official 4.0.10 security release).
GitHub: @fastify/express 4.0.10 security release (12:59 EST, 20 November 2026; lists the five express CVEs; retrieved via the GitHub Releases API).
GitHub: @fastify/middie 9.3.8 and 9.3.9 (20 November 2026; retrieved via the GitHub Releases API).
CVE records for CVE-2026-133250, CVE-2026-133120, CVE-2026-129504, CVE-2026-124626, CVE-2026-133867 and CVE-2026-129850 (OpenJS CNA; published 11:46-12:08 EST, 21 November 2026; retrieved via the CVE List API).
NVD records for the same six CVEs (imported 12:16 EST, 21 November 2026; status Received; OpenJS scores shown as Secondary; retrieved via the NVD API on 23 November 2026).
OpenJS Foundation CNA security advisories list (confirms the six CVE identifiers on the CNA list; checked 23 November 2026).
npm registry: @fastify/middie and @fastify/express (used to confirm latest versions 9.3.9 and 4.0.12 and publish timestamps; not a substitute for the advisories).
CISA: KEV catalog JSON feed : catalogVersion 2026.11.20, released 12:48 EST, 20 November 2026, 1,790 entries; CVE-2026-133250, CVE-2026-133120, CVE-2026-129504, CVE-2026-124626, CVE-2026-133867 and CVE-2026-129850 are not listed in KEV; checked 01:08 EST, 23 November 2026.
FIRST: EPSS API (scores dated 22 November 2026 for all six CVEs; checked 23 November 2026).
