{"id":"CVE-2026-133867","aliases":["CVE-2026-133867"],"related":[],"kind":"vulnerability","state":"published","title":"@fastify/express vulnerable to middleware bypass via RegExp mount paths under parameterized prefixes","summary":"@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.7 through 4.0.9, the plugin does not rewrite regular-expression mount paths to account for a parameterized plugin prefix, so when middleware is mounted with a regular expression inside a plugin registered under a parameterized prefix, the Express matcher treats the prefix parameter as literal text and never matches the real request path. As a result, Express silently skips that middleware while Fastify still runs the route handler, so an application that relies on regular-expression mounted middleware for authentication or authorization inside a parameterized-prefix plugin exposes protected routes to unauthenticated clients. No special configuration is required beyond a parameterized prefix and a regular-expression mount. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.7 through 4.0.9, the plugin does not rewrite regular-expression mount paths to account for a parameterized plugin prefix, so when middleware is mounted with a regular expression inside a plugin registered under a parameterized prefix, the Express matcher treats the prefix parameter as literal text and never matches the real request path. As a result, Express silently skips that middleware while Fastify still runs the route handler, so an application that relies on regular-expression mounted middleware for authentication or authorization inside a parameterized-prefix plugin exposes protected routes to unauthenticated clients. No special configuration is required beyond a parameterized prefix and a regular-expression mount. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.","source":"cvelist"}],"published":"2026-11-21T16:59:29.587Z","modified":"2026-11-23T21:16:57.643Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-287","CWE-436"],"affected":[{"ranges":[{"type":"semver","introduced":"4.0.7","fixed":"4.0.10","status":"affected"},{"type":"semver","version":"4.0.10","status":"unaffected"}],"vendor":"@fastify/express","product":"@fastify/express","source":"cvelist"}],"references":[{"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-84w6-xrf3-f8q8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[],"sources":["cvelist","nvd"]}],"credits":["kleju13","UlisesGascon","mcollina"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-11-23T20:18:47.017Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-133867","url":"https://www.cve.org/CVERecord?id=CVE-2026-133867","licence":"CVE Terms of Use","modified":"2026-11-23T20:19:03.325Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-133867","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133867","licence":"Public domain","modified":"2026-11-23T21:16:57.643Z"}],"updatedAt":"2026-11-25T22:59:52.524Z","epss":{"score":0.00743,"percentile":0.55926,"date":"2026-12-01T12:00:22.000Z"}}