Skip to main content
← All vulnerabilities
CVE-2026-22031GHSA-CXRG-G7R8-W69P

Fastify Middie Middleware Path Bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 9.1.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

@fastify/middie is the plugin that adds middleware support on steroids to Fastify. A security vulnerability exists in @fastify/middie prior to version 9.1.0 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. Version 9.1.0 fixes the issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • fastify middie

    fixed in 9.1.0

  • @fastify/middienpm

    fixed in 9.1.0

References 4

GitHub · fastify/middie