CVE-2026-14181 Details
Description
@fastify/middie versions 9.1.0 through 9.3.2 fail to guard the URL normalization step used by the standalone engine when incoming request paths contain malformed percent-encoded sequences. Inputs such as an incomplete percent escape or a truncated multibyte sequence cause the underlying decoder to throw synchronously, and the exception escapes the middie normalize step and terminates the Node.js process. The bypass affects applications that call middie.run directly on the standalone engine API, causing an immediate denial of service for all connected clients until restart. Applications using the Fastify plugin path are not affected because Fastifys error handler catches the exception. Patches: upgrade to @fastify/middie 9.3.3. Workarounds: migrate from the standalone engine API to the Fastify plugin path, where the framework error handler catches the exception.
A denial-of-service vulnerability has been identified in @fastify/middie versions 9.1.0 prior to 9.3.2. The issue arises in the standalone engine when incoming request paths contain malformed percent-encoded sequences, such as incomplete escapes or truncated multibyte characters. This flaw causes the decoder to throw a synchronous URIError, which escapes the normalization step and crashes the Node.js process. As a result, all connected clients experience an immediate denial-of-service until the server is restarted. This vulnerability specifically affects applications that use middie.run directly on the standalone engine API, bypassing Fastify's error handling. In contrast, applications that utilize the Fastify plugin path are not impacted, as Fastify's error handler effectively manages the exception.
Users can upgrade to @fastify/middie version 9.3.3 or later to address this vulnerability. Alternatively, applications can migrate from the standalone engine API to the Fastify plugin path, where the framework's error handler will catch any exceptions.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.openjsf.org/security-advisories.html | openjs | Vendor Advisory |
| https://github.com/fastify/middie/security/advisories/GHSA-qcc9-jh8q-47vh | openjs | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-248 | Uncaught Exception | openjs |
Affected Products
| Product | Versions |
|---|---|
| fastify fastify/middie | >= 9.1.0, < 9.3.3 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 2, 2026 | Initial Analysis | [email protected] |
| Jul 1, 2026 | CVE Modified | CISA-ADP |
| Jul 1, 2026 | New CVE Received | openjs |