{"schemaVersion":4,"id":"CVE-2026-133250","aliases":[],"status":"published","duplicateOf":null,"title":"@fastify/middie vulnerable to path-scoped middleware bypass via request path matching mismatches","description":"@fastify/middie is the middleware engine for the Fastify web framework. In versions up to and including 9.3.7, middie matches path-scoped middleware against its own reading of the request path, which can differ from the path Fastify's router uses to dispatch the request. When the two disagree, the router can route a request to a handler covered by a middleware mount while middie skips that middleware, so an unauthenticated client reaches a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, with no special configuration required. The mismatch is triggered by empty parameter or wildcard values, request targets that do not begin with a slash, and literal percent characters in a mount path. The issue is fixed in @fastify/middie 9.3.8, and users should upgrade to 9.3.8 or later.","dates":{"published":"2026-11-21T16:46:44.649Z","modified":"2026-11-23T20:16:12.299Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00743,"percentile":0.56076,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-22T00:00:00.000Z","score":0.00653,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00653,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00653,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00743,"percentile":0.56076}],"last30":[{"date":"2026-11-22T00:00:00.000Z","score":0.00653,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00653,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00653,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00743,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00743,"percentile":0.56076}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-288","name":"Authentication Bypass Using an Alternate Path or Channel","description":"The product requires authentication, but the product has an alternate path or channel that does not require authentication.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/288.html"},{"id":"CWE-436","name":"Interpretation Conflict","description":"Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/436.html"}],"affected":[{"vendor":"@fastify/middie","product":"@fastify/middie","name":"@fastify/middie","label":"@fastify/middie","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 9.3.8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"9.3.8","endInclusive":false}}],"versionsText":"< 9.3.8","eol":null,"hubHref":"/vendor/fastifymiddie/fastifymiddie"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/fastify/middie/security/advisories/GHSA-gcf6-j9m3-p97x","label":"github.com/fastify/middie/security/advisories/GHSA-gcf6-j9m3-p97x","hostname":"github.com","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","label":"cna.openjsf.org/security-advisories.html","hostname":"cna.openjsf.org","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-21T16:46:44.649Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-23T20:16:12.299Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 9.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability: affected before 9.3.8 (CNA); fix release not confirmed","rank":[0,0,0,0,1,91],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00743,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-23T20:16:12.299Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-23T20:16:12.299Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-23T20:16:02.780Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00743,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T09:01:26.874Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T09:01:27.430Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T09:01:27.610Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T09:01:02.756Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T09:01:25.188Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T09:01:24.136Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T09:32:00.713Z","stale":false,"partial":false}}