{"schemaVersion":4,"id":"CVE-2026-22037","aliases":["GHSA-g6q3-96cp-5r5m"],"status":"published","duplicateOf":null,"title":"@fastify/express vulnerable to Improper Handling of URL Encoding (Hex Encoding)","description":"The @fastify/express plugin adds full Express compatibility to Fastify. A security vulnerability exists in @fastify/express prior to version 4.0.3 where middleware registered with a specific path prefix can be bypassed using URL-encoded characters (e.g., `/%61dmin` instead of `/admin`). While the middleware engine fails to match the encoded path and skips execution, the underlying Fastify router correctly decodes the path and matches the route handler, allowing attackers to access protected endpoints without the middleware constraints. The vulnerability is caused by how @fastify/express matches requests against registered middleware paths. This vulnerability is similar to, but differs from, CVE-2026-22031 because this is a different npm module with its own code. Version 4.0.3 of @fastify/express contains a patch fort the issue.","dates":{"published":"2026-01-19T16:48:10.994Z","modified":"2026-01-20T21:34:44.100Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.4,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","exploitability":4.6,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00349,"percentile":0.30535,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00349},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00349,"percentile":0.30535}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00349,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00349,"percentile":0.30535}]},"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-177","name":"Improper Handling of URL Encoding (Hex Encoding)","description":"The product does not properly handle when all or part of an input has been URL encoded.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/177.html"},{"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"}],"affected":[{"vendor":"fastify","product":"fastify-express","name":"fastify-express","label":"fastify-express","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.0.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.0.3","endInclusive":false}}],"versionsText":"< 4.0.3","eol":null,"hubHref":"/vendor/fastify/fastify-express"},{"vendor":"@fastify","product":"express","name":"@fastify/express","label":"express","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@fastify/express","purlType":"npm","versions":[{"text":"< 4.0.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.0.3","endInclusive":false}}],"versionsText":"< 4.0.3","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/fastify/fastify-express/security/advisories/GHSA-g6q3-96cp-5r5m","label":"github.com/fastify/fastify-express/security/advisories/GHSA-g6q3-96cp-5r5m","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/fastify/fastify-express/commit/dc02a3fe1387f945143f22597baa42557d549a40","label":"github.com/fastify/fastify-express/commit/dc02a3fe1387f945143f22597baa42557d549a40","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22037","label":"nvd.nist.gov/vuln/detail/CVE-2026-22037","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/fastify/fastify-express","label":"github.com/fastify/fastify-express","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/fastify/fastify-express/releases/tag/v4.0.3","label":"github.com/fastify/fastify-express/releases/tag/v4.0.3","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-01-19T16:48:10.994Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-01-20T21:34:44.100Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 8.4, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,84],"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.00349,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-01-20T21:34:44.100Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","version":"3.1","headline":true},{"type":"cvss","source":"osv_npm","date":"2026-01-20T21:34:44.100Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-01-20T21:34:44.100Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-01-20T21:34:36.586Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00349,"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:24:22.729Z","stale":false,"partial":false}}