Fastify published its advisory on 20 November 2026 and identifies versions 4.0.0 through 4.0.9 as affected. Applications can be exposed when scoped Express middleware protects routes inside prefixed plugins and the paths disagree.Fastify rates the flaw Critical, and the advisory gives it a CVSS 3.1 score of 9.1. A path mismatch can let a Fastify route run while its Express authentication or authorization middleware is skipped. The impact depends on whether the application relies on that middleware to protect the route.
What it allows
How Does CVE-2026-129504 Bypass Authentication?
Fastify says the plugin joins a middleware mount path and a Fastify plugin prefix by string concatenation. A trailing slash on the prefix or a missing leading slash on the mount path makes the resulting Express path differ from the route Fastify serves. Express then passes the request onward while Fastify still dispatches the route.
Path-scoped middleware can therefore be skipped without a crafted request or a non-default setting. Fastify says string, array and regular-expression mount paths are affected. A reachable route is at risk when it depends on that middleware for authentication or authorization.
Our defensive reading is to check the protection applied to each route, not just the route registration. Teams can use Vulnerability Intelligence to prioritize affected deployments by exposure and business context. The route review should cover every path where Express middleware enforces access.
What Does the Exploitation Record Show?
CISA's KEV catalog version 2026.11.20 does not list CVE-2026-129504. That catalog status does not establish whether exploitation has occurred. The vendor's impact description still warrants prompt review of reachable applications that use scoped authentication middleware.
The CVE-2026-135279 Fastify Express profile explains a separate Router and sub-application middleware bypass fixed in @fastify/express 4.0.14.Who is affected
Version Check
| Release Line | Affected Range | Fixed In |
|---|---|---|
| 4.x | 4.0.0 to before 4.0.10 | 4.0.10 |
For distribution packages and custom builds, check the supplier’s advisory.
Check the installed and running plugin versions. Exposure also depends on path-scoped authentication or authorization middleware inside a prefixed Fastify plugin.
Which @fastify/express Versions Are Affected?
Fastify lists @fastify/express 4.0.0 through 4.0.9 as affected and 4.0.10 as patched. The exposed configuration uses path-scoped Express middleware inside a prefixed Fastify plugin, with a trailing prefix slash or missing mount-path leading slash. Focus first on routes where that middleware enforces authentication or authorization.
Inventory the plugin version installed in each application and the version loaded by its running deployment. Review middleware mounts and plugin prefixes together, including string, array and regular-expression mounts. Use the vulnerability prioritization process to rank exposed routes that rely on the affected control.
How Should Teams Fix and Verify the Issue?
Upgrade @fastify/express to 4.0.10 or later and confirm that production loads the patched plugin. Then test representative protected routes with both authorized and unauthenticated requests. Confirm that the authentication middleware runs and rejects access when it should.
If an upgrade must wait, Fastify advises a leading slash on the mount path and no trailing slash on the plugin prefix. That alignment is a temporary workaround, not a replacement for the patch. Check it against the actual application routes and record the result in the patch management process.
Timeline
- 2026-11-20
Fastify published GHSA-f44m-4qwg-5587 and identified @fastify/express 4.0.10 as the fixed version.
- 2026-11-21
NVD published CVE-2026-129504 and recorded a CVSS 3.1 score of 9.1.
What to do
-
Find affected applications
Inventory @fastify/express 4.0.0 through 4.0.9 and identify prefixed plugins whose path-scoped Express middleware controls access.
-
Apply the vendor fix
Upgrade @fastify/express to 4.0.10 or later. Prioritize reachable routes that depend on the affected middleware for authentication or authorization.
-
Verify the running deployment
Confirm the deployed process loads 4.0.10 or later. Test protected routes with authorized and unauthenticated requests to verify the middleware runs.
-
Validate a temporary workaround
If patching must wait, use Fastify's mount-path and prefix alignment guidance. Verify the result on the application's protected routes.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-129504 in Brandefense Atlas
The Atlas record of CVE-2026-129504: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
What causes CVE-2026-129504?
The plugin concatenates a Fastify prefix and an Express middleware mount path. A slash mismatch can make Express skip the middleware while Fastify still serves the protected route.
Which versions need the Fastify Express update?
Fastify lists @fastify/express 4.0.0 through 4.0.9 as affected. Version 4.0.10 contains the fix.
Does every Fastify route have the same exposure?
The advisory ties exposure to path-scoped Express authentication or authorization middleware inside a prefixed Fastify plugin. Review the actual mounts and protected routes.
What is the temporary workaround?
Fastify advises a leading slash on the middleware mount path and no trailing slash on the plugin prefix. Verify the resulting protection in the application.