Read the docs

@fastify/express middleware bypass via RegExp mounts under parameterized prefix

Priority MEDIUM 48CWE-287Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
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-287.

Summary

@fastify/express versions from 4.0.7 before 4.0.10 do not rewrite regular-expression mount paths for a parameterized plugin prefix. Express then treats the prefix parameter as literal text, so it silently skips middleware mounted with a regular expression inside such a plugin while Fastify still runs the route handler. An unauthenticated remote attacker can reach protected routes in an application that relies on that middleware for authentication or authorization, with no special configuration beyond a parameterized prefix and a regular-expression mount.

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.7 through 4.0.9, the plugin does not rewrite regular-expression mount paths to account for a parameterized plugin prefix, so when middleware is mounted with a regular expression inside a plugin registered under a parameterized prefix, the Express matcher treats the prefix parameter as literal text and never matches the real request path. As a result, Express silently skips that middleware while Fastify still runs the route handler, so an application that relies on regular-expression mounted middleware for authentication or authorization inside a parameterized-prefix plugin exposes protected routes to unauthenticated clients. No special configuration is required beyond a parameterized prefix and a regular-expression mount. 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.0052 37th 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
Yes
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.7 to before 4.0.104.0.10Patch availableCNA
  • @fastify/express Vendor@fastify/express Affected 4.0.7 to before 4.0.10 Fixed in 4.0.10 Patch available CNA

Remediation

Upgrade @fastify/express to version 4.0.10 or later, which fixes the issue.

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-133867
  2. 2026-11-23 CISA SSVC decision points changed
  3. 2026-11-25 EPSS moved to the below the 50th percentile

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-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
  • TI-2026-96436 Path-scoped middleware bypass in @fastify/express via Unicode case folding CVSS 3.1HIGH 7.4
See all 10 →

Sources

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