CVE-2026-14181 @fastify/middie Malformed URL Denial of Service
@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.
Quick answer
@fastify/middie should be reviewed and updated if it matches the affected versions. The recommended fix is to apply the vendor-supported patched version or the mitigation steps below, then retest the public website with Fixnx.
Who is affected
Affected versions
- >= 9.1.0, < 9.3.3
Fixed versions
- 9.3.3
How to fix it
@fastify/middie is affected by this security issue. The safest fix is to update to the fixed version, then test the site or service again to make sure the risky path is closed.
- Find every place where @fastify/middie is installed or used.
- Update to 9.3.3 or a later vendor-supported version.
- Back up the site or service before changing production systems.
- Apply the update in staging first if possible, then deploy it to production.
- If you cannot update right away, restrict access to the affected feature and monitor logs closely.
Scan now. Google sign-in is only needed to unlock fix guidance.
Verify the fix
- Confirm the installed version is no longer in the affected range.
- Retest the affected page, API, upload, login, chat, container, or network flow.
- Check logs after the change for blocked attempts, crashes, or errors.
- Run a fresh Fixnx scan and save the report.
Related categories
Trusted references
FAQ
What is affected by CVE-2026-14181?
@fastify/middie versions listed as affected should be reviewed: >= 9.1.0, < 9.3.3.
What should I fix first?
Start with internet-facing sites, admin panels, login flows, plugins, themes, modules, packages, and systems that process user-controlled input or sensitive data.
How do I confirm the fix worked?
Apply the patched version or mitigation, clear caches where relevant, retest the affected workflow, and run a new Fixnx scan to verify public website exposure signals.
How are Fixnx security risk categories chosen?
Fixnx keeps one canonical risk page and assigns only broad, relevant categories such as ecosystem, technology area, or vulnerability class.
