Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.1

CVE-2026-129504: Fastify Express plugin can skip authentication checks

CVE-2026-129504 · published 1 day ago
Summary

If you use the Fastify Express add‑on version 4.0.0 to 4.0.9, code that is supposed to verify users may be ignored for some routes. This happens when the plugin is given a path that ends with a slash or is missing a leading slash, causing the check to be bypassed without any special request. Upgrade the add‑on to version 4.0.10 or newer to ensure authentication runs as expected.

Original advisory text
@fastify/express vulnerable to path-scoped middleware bypass via prefix and mount path join mismatch
@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.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker full control (estimated)
Severity
9.1 Critical
Type
CWE-436Interpretation Conflict
CWE-863Incorrect Authorization
Timeline
Published21 Nov 2026
Updated21 Nov 2026
First seen21 Nov 2026
Sources
Track software like this
Free during beta