Intel

AIKIDO-2026-306122

@fastify/middie is vulnerable to Denial of Service

CVE-2026-14181Published Jul 6, 2026
July 6, 2026

75

CVE Score

High

Denial of Service

Are you affected? Scan for Free

TL;DR

@fastify/middie crashes with an uncaught URIError when normalizing request paths that contain malformed percent-encoded sequences such as /%zz, /%, or truncated multibyte sequences like /%E2%82. The exception escapes the standalone engine and terminates the Node.js process, causing an immediate denial of service for all connected clients until restart. This affects applications that call middie.run(req, res) on the standalone engine API directly, since the Fastify plugin path catches the exception in its error handler. The fix catches the URIError and fails the request with a FST_ERR_MIDDIE_MALFORMED_URL 400 error instead of throwing.

How do I fix this?

Upgrade the @fastify/middie library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application calls the standalone engine API (@fastify/middie/lib/engine) directly via middie.run rather than the Fastify plugin path.

Versions

9.1.0 - 9.3.2

Fixed in 9.3.3

Background info

@fastify/middie is vulnerable to Denial of Service in versions 9.1.0 - 9.3.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea