{"id":"CVE-2026-135279","aliases":[],"cve":{"records":[{"id":"CVE-2026-135279","source":"openjs","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-11-23T16:15:06.116Z","published":"2026-11-26T16:51:11.794Z","modified":"2026-11-26T16:51:11.794Z"}],"publishers":[{"name":"openjs","role":"CNA","organizationId":"ce714d77-add3-4f53-aff5-83d477b104bb","modified":"2026-11-26T16:51:11.794Z"}],"references":[{"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-f9qf-hfc5-7xpj","tags":[],"source":"openjs"},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[],"source":"openjs"}],"weaknesses":[{"id":"CWE-287","description":"CWE-287: Improper Authentication","source":"openjs"},{"id":"CWE-436","description":"CWE-436: Interpretation Conflict","source":"openjs"}],"applicability":[],"prioritization":[]},"title":"@fastify/express vulnerable to middleware bypass via empty route parameters in Express routers and sub-applications","titleSource":"openjs","descriptionSource":"openjs","description":"@fastify/express is the plugin that lets an application run Express middleware and Express applications inside the Fastify web framework. In versions before 4.0.14, a request with an empty dynamic route parameter reaches a Fastify route handler while middleware mounted for that path inside an Express Router or sub-application is skipped, because Fastify's router accepts an empty value where Express requires a non-empty one, and an unanchored regular-expression mount passed to the plugin is bypassed the same way. An earlier fix covered only the mount paths passed to the plugin directly, not middleware mounted inside a routed Express application. An attacker can use this to bypass authentication or other middleware-based access controls on the affected routes, with the practical impact depending on what the empty value selects in the application. The issue is fixed in @fastify/express 4.0.14, and users should upgrade to 4.0.14 or later. As a workaround, enforce authentication in a Fastify hook such as preHandler that runs after routing, mount the middleware on a static parent path, or require non-empty values in the route params schema.","score":9.1,"severity":"critical","published":"2026-11-26T16:51:11.794Z","modified":"2026-11-26T16:51:11.794Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"@fastify/express","name":"@fastify/express","platforms":[],"versions":[{"version":"0","status":"affected","lessThan":"4.0.14","versionType":"semver"},{"version":"4.0.14","status":"unaffected","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:npm/@fastify/express","packageIdentity":{"ecosystem":"npm","name":"@fastify/express"},"cpes":[],"source":"openjs","url":"https://www.cve.org/CVERecord?id=CVE-2026-135279"}],"remediation":[],"references":["https://github.com/fastify/fastify-express/security/advisories/GHSA-f9qf-hfc5-7xpj","https://cna.openjsf.org/security-advisories.html"],"sources":[{"name":"CVE","id":"CVE-2026-135279","modified":"2026-11-26T16:51:11.794Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-135279"}],"assessments":[{"source":"openjs","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1}],"sourceAffected":[],"observedAt":"2026-11-26T17:05:51.410Z","kev":{"status":"not-listed","checkedAt":"2026-11-28T23:15:32.077Z"},"coverage":[{"source":"NVD","status":"no-result","checkedAt":"2026-11-26T17:15:33.238Z","attemptedAt":"2026-11-26T17:15:33.238Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-26T17:15:33.356Z","attemptedAt":"2026-11-26T17:15:33.356Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-26T17:15:33.559Z","attemptedAt":"2026-11-26T17:15:33.559Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-26T17:15:34.307Z","attemptedAt":"2026-11-26T17:15:34.307Z"}],"evidence":[],"aiSummary":{"text":"@fastify/express versions before 4.0.14 are vulnerable to middleware bypass via empty route parameters. An attacker can bypass authentication or access controls on affected routes. The issue is due to a difference in route parameter handling between Fastify and Express.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-26T17:06:04.030Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-135279"}]}}