CVE-2026-22031

Fastify Middie Middleware Path Bypass

HIGH
8.8
CVSS Score
Published: January 19, 2026 at 03:24 PM UTC
Updated: June 17, 2026 at 10:19 AM UTC
1 product affected across 1 vendorFastify /middie

Using middie by fastify?

Get instant alerts when new vulnerabilities affect middie - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.5%
SSVC
PoC

Description

@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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 9.1.0
Affected range stops below 9.1.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

x_refsource_CONFIRMExploitVendor Advisory
Source: cverecord
https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/fastify/middie/pull/245
x_refsource_MISCProductRelease Notes
Source: cverecord
https://github.com/fastify/middie/releases/tag/v9.1.0

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-177

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card