@fastify/express & @fastify/middie Middleware Bypass Vulnerability.

Release Date: 6th July 2026

Impact : HIGH / CRITICAL

TLP Rating: Clear

The Department of Communications and Digital Transformation (DCDT) through CERT Vanuatu (CERTVU), provides the following advisory.

This alert is relevant to Organizations and System/Network administrators that utilize the above products. This alert is intended to be understood by technical users and systems administrators.

What is it?

1.    CVE-2026-6556 - @fastify/express Middleware Prefix Bypass - @fastify/express versions 4.0.6 and earlier only rewrite the plugin prefix for middleware mount paths when the path argument is a string. Non-string mount paths (arrays of paths and regular expressions) are left unprefixed inside prefixed plugin scopes, so middleware registered with those forms does not match the actual prefixed request path.

2.    CVE-2026-14198 - @fastify/middle Encoded Slash 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.

3.    CVE-2026-14181 - @fastify/middie's standalone engine is vulnerable to Denial of Service via malformed percent-encoded paths. This is the same root defect class as CVE-2026-1418 (both are uncaught-exception DoS issues in the standalone engine's URL normalization), but tracked as a separate CVE ID — likely covering an overlapping or slightly different malformed-encoding trigger path.

 

References

  1. https://www.cisa.gov/news-events/bulletins/sb26-187
  2. https://www.cve.org/CVERecord?id=CVE-2026-6556
  3. https://www.cve.org/CVERecord?id=CVE-2026-14198
  4. https://www.cve.org/CVERecord?id=CVE-2026-14181