CVE-2026-14198 @fastify/middie Encoded Slash Middleware Bypass
@fastify/middie versions 9.1.0 through 9.3.2 decode the encoded slash %2F inside path parameter values before matching middleware paths, while Fastify's underlying router preserves the encoding during route lookup. The two layers disagree on the canonical request path, so the middleware fails to match a URL that the route handler does match. When middleware is used for authentication, authorization, rate limiting, or auditing on parameterized paths, an attacker can reach the protected handler by sending a single crafted URL with an encoded slash in the parameter position. The bypass is HTTP method agnostic and requires no authentication or special preconditions. Patches: upgrade to @fastify/middie 9.3.3. Workarounds: avoid parameterized middleware paths for security decisions, or enforce authentication at the route handler or via a Fastify hook that runs after the router has resolved the request.
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-14198?
@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.
