CVE-2026-14181

@fastify/middie standalone engine vulnerable to Denial of Service via malformed percent-encoded paths

Published Jul 1, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises in @fastify/middie’s standalone engine during URL normalization, where malformed percent‑encoded incomplete escapes or truncated multibyte characters trigger a decoder exception that is not handled internally. The exception propagates out of the normalize step, causing the entire Node.js process to terminate and abruptly shutting down the server. This results in a denial of service for all connected clients until the application is restarted. The weakness is a failure to properly handle exceptional conditions (CWE‑248).

Affected Systems

All installations of @fastify/middie from version 9.1.0 through 9.3.2 expose the standalone engine API are affected. Applications that invoke middie.run directly with these versions are vulnerable. Configurations that use the Fastify plugin path are not impacted because Fastifys framework error handler intercepts and handles the exception.

Risk and Exploitability

The CVSS score of 7.5 indicates high severity, while the EPSS score of less than 1% points to a very low probability of exploitation in the current environment. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the attack vector is remote: an adversary can send a crafted request containing a malformed percent‑encoded path to any accessible server using the affected engine, causing the process crash.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade @fastify/middie to version 9.3.3 or newer.
  • Refactor the application to stop using the standalone engine API and register routes via the Fastify plugin path instead.
  • Enable detailed request logging to detect and isolate malformed percent‑encoded URLs before they cause crashes.

Generated by OpenCVE AI on August 1, 2026 at 23:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Fastify
Fastify fastify/middie
Vendors & Products Fastify
Fastify fastify/middie
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title @fastify/middie standalone engine vulnerable to Denial of Service via malformed percent-encoded paths
Weaknesses CWE-248
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
openjs
Published
Updated
Jul 1, 2026, 12:05 PM
Reserved
Jun 30, 2026, 8:01 AM
Status
Analyzed
Published
Jul 1, 2026, 12:16 PM
Modified
Jul 2, 2026, 1:50 PM