CVE-2026-22031
Last modified
CVE-2026-22031 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. @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`). EPSS estimates a 0.46% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Fastify | Fastify\/Middie | < 9.1.0 |
References
- https://github.com/fastify/middie/pull/245Issue Tracking, Patch
- https://github.com/fastify/middie/releases/tag/v9.1.0Product, Release Notes
- https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69pExploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-22031?
How severe is CVE-2026-22031?
How do I fix CVE-2026-22031?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-22026CryptoLib provides a software-only solution using the CCSDS …7.5
- CVE-2026-22027CryptoLib provides a software-only solution using the CCSDS …6
- CVE-2026-22028Preact, a lightweight web development framework, JSON serial…6.1
- CVE-2026-22029React Router is a router for React. In @remix-run/router ver…6.1
- CVE-2026-2203A flaw has been found in Tenda AC8 16.03.33.05. Affected by …8.8
- CVE-2026-22030React Router is a router for React. In @remix-run/server-run…6.5
- CVE-2026-22032Directus is a real-time API and App dashboard for managing S…6.1
- CVE-2026-22033Label Studio is a multi-type data labeling and annotation to…5.4
- CVE-2026-22034Snuffleupagus is a module that raises the cost of attacks ag…9.8
- CVE-2026-22035Greenshot is an open source Windows screenshot utility. Vers…7.3
- CVE-2026-22036Undici is an HTTP/1.1 client for Node.js. Prior to 7.18.0 an…7.5
- CVE-2026-22037The @fastify/express plugin adds full Express compatibility …8.4
Are you affected by CVE-2026-22031?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
