In versions 4.0.0 through 4.0.9, the plugin joins a path-scoped middleware's mount path to the Fastify plugin prefix by string concatenation, so when the plugin prefix ends with a slash or the mount…
- CVSS
- 9.1Critical
- Chance of exploitation (EPSS)
- 0.59%
- Published
- Nov 21, 2026
- In the news
- Not yet
What to do
A critical access control flaw in Fastify Express that can be attacked over the network without logging in. No attacks are reported yet, but patch it soon.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Fixed in: 4.0.10
Affected versions
- Fastify Express
- 4.0.0 to before 4.0.10
Description
@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.0 through 4.0.9, the plugin joins a path-scoped middleware's mount path to the Fastify plugin prefix by string concatenation, so when the plugin prefix ends with a slash or the mount path omits its leading slash, the resulting Express mount path does not line up with the route the Fastify router serves. Express then fails to match and passes the request on while the Fastify router still dispatches the route, so the middleware is silently skipped. An application that uses path-scoped Express middleware for authentication or authorization inside a prefixed plugin can expose protected routes to unauthenticated clients, with no crafted request and no non-default option required, and string, array, and regular-expression mount paths are all affected. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-129504 published (CVSS 9.1) (Nov 21, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Sat, Nov 21, 2026
- CVECVE-2026-129504 published (CVSS 9.1)CVE Program · 17:03 UTC
References 2
- github.com /fastify/fastify-express/security/advisories/GHSA-f44m-4qwg-5587
- cna.openjsf.org /security-advisories.html