Read the docs

@fastify/express path-scoped middleware bypass via URL decoding mismatch

Priority MEDIUM 48CWE-174Published · Updated

Key facts

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

Attack profile from CVSS 3.1 · CNA. Fix status from CNA.

Summary

@fastify/express passes Express middleware a request URL that does not always match the path Fastify's router dispatched. In versions before 4.0.10, percent-decoding that rewrites a backslash to a slash, double-decoding of an encoded percent sign, and a request target beginning with an asterisk can make path-scoped Express middleware get skipped while the route handler still runs. An unauthenticated client can reach handlers that authentication, authorization, or rate-limiting middleware was meant to protect, with no special configuration required. The weaknesses are CWE-174 and CWE-436, and the CVSS 3.1 base score is 9.1 (CRITICAL).

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 before 4.0.10, the plugin passes Express a request URL that does not always match the path Fastify's router dispatched, so path-scoped Express middleware can be skipped while the route handler still runs. Several request forms trigger the mismatch, including percent-decoding that rewrites a backslash to a slash or double-decodes an encoded percent sign, and a request target that begins with an asterisk, so the middleware and the handler disagree on the path or on parameter and query values. An unauthenticated client can therefore reach a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, with no special configuration required. 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.00513 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/expressbefore 4.0.104.0.10Patch availableCNA
  • @fastify/express Vendor@fastify/express Affected before 4.0.10 Fixed in 4.0.10 Patch available CNA

Remediation

Upgrade @fastify/express to version 4.0.10 or later. Versions before 4.0.10 are affected.

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-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
    • TI-2026-96433 @fastify/express middleware bypass via RegExp mounts under parameterized prefixPriority MEDIUM 48

Timeline

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

References

  • 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
  • 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