Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-22031

Fastify Middie Middleware Path Bypass
Back to all
CVE

CVE-2026-22031

Fastify Middie Middleware Path Bypass

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

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
8.4
-
3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L
C
H
U
-

Related Resources

No items found.

References

https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22031.json, https://github.com/fastify/middie/commit/d44cd56eb724490babf7b452fdbbdd37ea2effba, https://github.com/fastify/middie/pull/245, https://github.com/fastify/middie/releases/tag/v9.1.0, https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p, https://nvd.nist.gov/vuln/detail/CVE-2026-22031

Severity

8.4

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
8.4
EPSS Probability
0.00072%
EPSS Percentile
0.21783%
Introduced Version
0
Fix Available
8de54e35035cefa5ca13fd9f06c7b38185038a0e

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading