{"vuln_id":"CVE-2026-129504","aliases":["GHSA-f44m-4qwg-5587"],"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.","published_at":"2026-11-21T17:16:39.920000Z","modified_at":"2026-11-21T17:16:39.920000Z","first_seen_at":"2026-11-21T19:15:21.306942Z","severity":"critical","severity_source":"nvd","cvss_score":9.1,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","cwe":["CWE-436","CWE-863"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-129504"},"matched_alias":null,"items":[{"id":2703,"source":{"id":"vuldb","name":"VulDB recent entries"},"title":"CVE-2026-129504 | fastify express up to 4.0.9 compatibility layer improper authorization","summary":"A vulnerability identified as critical has been detected in fastify express up to 4.0.9. Affected by this issue is some unknown functionality of the component compatibility layer. This manipulation causes improper authorization.\n\nThis vulnerability appears as CVE-2026-129504. The attack may be initiated remotely. There is no available exploit.\n\nYou should upgrade the affected component.","url":"https://vuldb.com/vuln/442004","published_at":"2026-11-21T17:36:30Z","updated_at":"2026-11-21T17:36:30Z","fetched_at":"2026-11-21T19:15:21.123007Z","severity":"critical","cvss_score":9.1,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"fastify","product":"express","vuln_id":"CVE-2026-129504","vuln_ids":["CVE-2026-129504","GHSA-F44M-4QWG-5587"],"tags":["Vendor: fastify","Product: express","Risk: critical","Physical: No","Local: No","Remote: Yes","Exploit: No","Countermeasures: Upgrade"],"cluster_id":2786,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2703","html":"https://vulnwatch.ve1ve2.com/item/2703"}},{"id":10248,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-129504: @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…","summary":"@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.\n\nReferences:\nhttps://cna.openjsf.org/security-advisories.html\nhttps://github.com/fastify/fastify-express/security/advisories/GHSA-f44m-4qwg-5587","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129504","published_at":"2026-11-21T17:16:39.920000Z","updated_at":"2026-11-21T17:16:39.920000Z","fetched_at":"2026-11-21T19:15:31.485731Z","severity":"critical","cvss_score":9.1,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-129504","vuln_ids":["CVE-2026-129504","GHSA-F44M-4QWG-5587"],"tags":["CWE-436","CWE-863"],"cluster_id":2786,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10248","html":"https://vulnwatch.ve1ve2.com/item/10248"}}]}