{"id":"CVE-2026-135264","aliases":[],"cve":{"records":[{"id":"CVE-2026-135264","source":"openjs","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-11-23T15:47:01.168Z","published":"2026-11-26T16:56:01.394Z","modified":"2026-11-26T16:56:01.394Z"}],"publishers":[{"name":"openjs","role":"CNA","organizationId":"ce714d77-add3-4f53-aff5-83d477b104bb","modified":"2026-11-26T16:56:01.394Z"}],"references":[{"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-wjm9-696x-9549","tags":[],"source":"openjs"},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[],"source":"openjs"}],"weaknesses":[{"id":"CWE-436","description":"CWE-436: Interpretation Conflict","source":"openjs"},{"id":"CWE-863","description":"CWE-863: Incorrect Authorization","source":"openjs"}],"applicability":[],"prioritization":[]},"title":"@fastify/express vulnerable to middleware bypass via nested arrays of mount paths","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 from 4.0.7 before 4.0.14, when middleware is mounted on a nested array of mount paths the plugin rewrites only the top level of the array, so paths inside a nested array are not adjusted for a plugin registered under a prefix and the middleware never runs for them, a nested regular-expression mount keeps its global or sticky flag and is matched statefully so it is skipped on alternating requests, a nested regular expression is not matched case-insensitively when case sensitivity is disabled, and nested dynamic paths are not covered by the earlier empty-segment check. An attacker can use any of these to bypass authentication or other middleware-based access controls on the affected routes. The issue is fixed in @fastify/express 4.0.14, and users should upgrade to 4.0.14 or later. As a workaround, flatten mount path arrays before passing them to the plugin, or enforce authentication in a Fastify hook such as preHandler that runs after the router resolves the request.","score":7.4,"severity":"high","published":"2026-11-26T16:56:01.394Z","modified":"2026-11-26T16:56:01.394Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"@fastify/express","name":"@fastify/express","platforms":[],"versions":[{"version":"4.0.7","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-135264"}],"remediation":[],"references":["https://github.com/fastify/fastify-express/security/advisories/GHSA-wjm9-696x-9549","https://cna.openjsf.org/security-advisories.html"],"sources":[{"name":"CVE","id":"CVE-2026-135264","modified":"2026-11-26T16:56:01.394Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-135264"}],"assessments":[{"source":"openjs","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4}],"sourceAffected":[],"observedAt":"2026-11-26T17:05:50.072Z","kev":{"status":"not-listed","checkedAt":"2026-11-28T19:55:30.869Z"},"coverage":[{"source":"NVD","status":"no-result","checkedAt":"2026-11-26T17:10:33.910Z","attemptedAt":"2026-11-26T17:10:33.910Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-26T17:10:33.737Z","attemptedAt":"2026-11-26T17:10:33.737Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-26T17:10:33.007Z","attemptedAt":"2026-11-26T17:10:33.007Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-26T17:10:33.866Z","attemptedAt":"2026-11-26T17:10:33.866Z"}],"evidence":[],"aiSummary":{"text":"@fastify/express versions 4.0.7 to 4.0.14 (exclusive) have a middleware bypass vulnerability via nested arrays of mount paths, potentially allowing attackers to bypass authentication or access controls. The issue is fixed in version 4.0.14. An attacker can exploit this weakness with local access to the affected system.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-26T17:06:04.169Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-135264"}]}}