{"id":"CVE-2026-85184","state":"PUBLISHED","title":"@fastify/middie vulnerable to path-scoped middleware bypass via absolute-form request target","description":"@fastify/middie versions >= 9.1.0 and before 9.3.4 decide whether to run path-scoped middleware by matching against the raw request target, while the Fastify router resolves an absolute-form request target to its path before dispatching. Because the two layers evaluate different strings, a request using an absolute-form target reaches the route handler while the path-scoped middleware, such as authentication or authorization, is skipped. An unauthenticated network attacker can use this to bypass path-based access controls in a Fastify application that relies on middie for those controls. Users should upgrade to @fastify/middie 9.3.4 or later.","publishedAt":"2026-09-04T09:15:51.216Z","updatedAt":"2026-09-04T19:36:20.968Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"openjs"},"assigner":"openjs","products":["@fastify/middie @fastify/middie"],"affected":[{"vendor":"@fastify/middie","product":"@fastify/middie","packageURL":"pkg:npm/@fastify/middie","defaultStatus":"unaffected","versions":[{"version":"9.1.0","status":"affected","lessThan":"9.3.4","versionType":"semver"},{"version":"9.3.4","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/fastify/middie/security/advisories/GHSA-hx87-8wv7-pjv8","https://cna.openjsf.org/security-advisories.html"],"weaknesses":["CWE-436"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/85xxx/CVE-2026-85184.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-85184","state":"PUBLISHED","datePublished":"2026-09-04T09:15:51.216Z","dateUpdated":"2026-09-04T19:36:20.968Z","assignerShortName":"openjs","assignerOrgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateReserved":"2026-09-03T11:39:08.481Z"},"containers":{"cna":{"title":"@fastify/middie vulnerable to path-scoped middleware bypass via absolute-form request target","descriptions":[{"lang":"en","value":"@fastify/middie versions >= 9.1.0 and before 9.3.4 decide whether to run path-scoped middleware by matching against the raw request target, while the Fastify router resolves an absolute-form request target to its path before dispatching. Because the two layers evaluate different strings, a request using an absolute-form target reaches the route handler while the path-scoped middleware, such as authentication or authorization, is skipped. An unauthenticated network attacker can use this to bypass path-based access controls in a Fastify application that relies on middie for those controls. Users should upgrade to @fastify/middie 9.3.4 or later."}],"affected":[{"vendor":"@fastify/middie","product":"@fastify/middie","packageURL":"pkg:npm/@fastify/middie","defaultStatus":"unaffected","versions":[{"version":"9.1.0","status":"affected","lessThan":"9.3.4","versionType":"semver"},{"version":"9.3.4","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/fastify/middie/security/advisories/GHSA-hx87-8wv7-pjv8"},{"url":"https://cna.openjsf.org/security-advisories.html"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","baseScore":9.1,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-436","lang":"en","description":"CWE-436: Interpretation Conflict","type":"CWE"}]}],"providerMetadata":{"shortName":"openjs","orgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateUpdated":"2026-09-04T09:15:51.216Z"},"credits":[{"lang":"en","type":"reporter","value":"zer0d4y5"},{"lang":"en","type":"remediation developer","value":"mcollina"},{"lang":"en","type":"remediation reviewer","value":"UlisesGascon"}],"x_generator":{"engine":"cve-kit 1.0.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-04T19:36:12.098740Z","id":"CVE-2026-85184","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-04T19:36:20.968Z"}}]}}}