OFFSITE.DARK
← Signals

Nov 26, 2026

2 min

OpenJS / Fastify

  • fastify
  • express
  • nodejs
  • npm
  • auth-bypass
  • cve-2026-135279

news

Fastify @fastify/express & @fastify/middie Middleware Bypass (CVE-2026-135279)

Critical up to 9.1

OpenJS disclosed six path-matching middleware bypasses on 26 November: five in @fastify/express < 4.0.14 led by CVE-2026-135279 (CVSS 3.1 9.1), plus CVE-2026-135205 (CVSS 3.1 7.4) in @fastify/middie < 9.3.10. Not in CISA KEV.

Record
CVE-2026-135279
Score
Critical up to 9.1
Status
Not KEVChecked, not listed
Organization
OpenJS / Fastify

Summary

On 26 November 2026, the OpenJS Foundation CNA published six coordinated middleware-bypass advisories affecting Fastify's Express compatibility plugins (discovered by Matteo Collina and reviewed by Ulises Gascón). Whenever path-scoped Express authentication or authorization middleware fails to match an equivalent Fastify route path, Fastify invokes the route handler while silently skipping the Express middleware.

Five flaws affect @fastify/express < 4.0.14—headed by CVE-2026-135279 (CVSS 3.1 9.1 Critical)—and a sixth affects @fastify/middie 9.3.6–<9.3.10 (CVE-2026-135205, CVSS 3.1 7.4 High). Several of these edge cases follow earlier 2026 path-normalization advisories (CVE-2026-129850, CVE-2026-124626, CVE-2026-6556, and @fastify/middie CVE-2026-112712). None appear in CISA KEV catalog 2026.11.25.

All six CVEs fixed on 26 November

CVE / GHSAPackage & AffectedCVSS 3.1Bypass VectorFixed
CVE-2026-135279 (GHSA-f9qf-hfc5-7xpj)@fastify/express < 4.0.149.1 CriticalEmpty route parameters in Express routers/sub-apps and unanchored RegExp mounts4.0.14
CVE-2026-135280 (GHSA-f446-h93m-fvr5)@fastify/express < 4.0.147.4 HighcaseSensitive: false with Unicode case-folding mounts (İ, ẞ, K, Ω, Å) or inner case-sensitive routers/RegExps4.0.14
CVE-2026-135270 (GHSA-j373-fcw4-2ccv)@fastify/express 4.0.5–<4.0.147.4 HighMount paths starting with an Express 5 optional leading group4.0.14
CVE-2026-135264 (GHSA-wjm9-696x-9549)@fastify/express 4.0.7–<4.0.147.4 HighNested arrays of mount paths (fastify.use([ARRAY, '/path'], mw)) missing prefixing, caseSensitive, and stateful RegExp flag cleanup4.0.14
CVE-2026-135230 (GHSA-x6w9-3qcm-vp2j)@fastify/express 4.0.3–<4.0.147.4 HighPercent-encoded Unicode line/paragraph separators decoded raw, breaking . RegExp mount matchers4.0.14
CVE-2026-135205 (GHSA-4c7f-6888-3vrh)@fastify/middie 9.3.6–<9.3.107.4 HighMount paths without leading / inside prefixed plugins (use('secret', auth) → /api/secret vs route /apisecret)9.3.10

Operator actions

  1. Upgrade immediately to @fastify/express >= 4.0.14 and @fastify/middie >= 9.3.10.
  2. Do not enforce authentication solely inside path-scoped Express middleware mounted via .use(); enforce authentication and authorization in native Fastify preHandler / onRequest hooks after route resolution.

Sources

→ Source