Read the docs

Path-scoped middleware bypass in @fastify/express via Unicode case folding

Priority LOW 35CWE-178Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-863.

Summary

@fastify/express, a compatibility layer that runs Express middleware inside Fastify, from 4.0.0 before 4.0.10 matches Express mount paths against the decoded path without applying the same case folding as Fastify's case-insensitive router. A request that spells a mount path letter with an equivalent Unicode character reaches the protected handler while the path-scoped middleware is skipped (CWE-178). An unauthenticated remote attacker can reach a handler that authentication, authorization, or rate-limiting middleware was meant to protect, but only when the application enables case-insensitive routing and the mount path contains an affected letter.

Written with Claude Haiku 5.5 from the sources below · 2026-11-21

Description from the CNA

@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.0 through 4.0.9, when Fastify routing is configured to be case-insensitive, the router folds the request path to lower case in a way that maps certain non-ASCII Unicode characters to ASCII letters, but @fastify/express matches Express mount paths against the decoded path without applying the same folding. The two disagree, so a request that spells a letter of a mount path with an equivalent Unicode character is routed to the protected handler while the path-scoped middleware mounted on that path never matches and is skipped. An unauthenticated client can therefore reach a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, though only when the application enables case-insensitive routing and the mount path contains an affected letter. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00429 28th percentileScored 2026-11-30
Fix Fixed @fastify/express (@fastify/express): 4.0.10

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
@fastify/express@fastify/express4.0.0 to before 4.0.104.0.10Patch availableCNA
  • @fastify/express Vendor@fastify/express Affected 4.0.0 to before 4.0.10 Fixed in 4.0.10 Patch available CNA

Remediation

Upgrade @fastify/express to 4.0.10 or later, which fixes the issue. The affected range is from 4.0.0 before 4.0.10.

Written with Claude Haiku 5.5 from the sources below · 2026-11-21

  • Fix · CNA @fastify/express (@fastify/express) Fixed in 4.0.10

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    @fastify/express 4.0.10

    5 records Highest priority Priority MEDIUM 4 MEDIUM, 1 LOW

    Other records, highest priority first

    • TI-2026-96437 @fastify/express path-scoped middleware bypass via URL decoding mismatchPriority MEDIUM 48
    • TI-2026-96435 Path-scoped middleware bypass in @fastify/express skips authentication checksPriority MEDIUM 48
    • TI-2026-96434 Middleware bypass in @fastify/express via empty route parametersPriority MEDIUM 48

Timeline

  1. 2026-11-21 Threatist record created from CVE-2026-129850
  2. 2026-11-23 CISA SSVC decision points changed

References

  • TI-2026-96437 @fastify/express path-scoped middleware bypass via URL decoding mismatch CVSS 3.1CRITICAL 9.1
  • TI-2026-96435 Path-scoped middleware bypass in @fastify/express skips authentication checks CVSS 3.1CRITICAL 9.1
  • TI-2026-96434 Middleware bypass in @fastify/express via empty route parameters CVSS 3.1CRITICAL 9.1
  • TI-2026-96433 @fastify/express middleware bypass via RegExp mounts under parameterized prefix CVSS 3.1CRITICAL 9.1
  • TI-2026-81130 Middleware bypass in @fastify/express via absolute-form URLs CVSS 3.1CRITICAL 9.1
  • TI-2026-99002 Middleware bypass via empty route parameters in @fastify/express CVSS 3.1CRITICAL 9.1
See all 10 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences