- fastify
- express
- nodejs
- npm
- auth-bypass
- cve-2026-135279
news
Fastify @fastify/express & @fastify/middie Middleware Bypass (CVE-2026-135279)
Critical up to 9.1OpenJS 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 / GHSA | Package & Affected | CVSS 3.1 | Bypass Vector | Fixed |
|---|---|---|---|---|
CVE-2026-135279 (GHSA-f9qf-hfc5-7xpj) | @fastify/express < 4.0.14 | 9.1 Critical | Empty route parameters in Express routers/sub-apps and unanchored RegExp mounts | 4.0.14 |
CVE-2026-135280 (GHSA-f446-h93m-fvr5) | @fastify/express < 4.0.14 | 7.4 High | caseSensitive: false with Unicode case-folding mounts (İ, ẞ, K, Ω, Å) or inner case-sensitive routers/RegExps | 4.0.14 |
CVE-2026-135270 (GHSA-j373-fcw4-2ccv) | @fastify/express 4.0.5–<4.0.14 | 7.4 High | Mount paths starting with an Express 5 optional leading group | 4.0.14 |
CVE-2026-135264 (GHSA-wjm9-696x-9549) | @fastify/express 4.0.7–<4.0.14 | 7.4 High | Nested arrays of mount paths (fastify.use([ARRAY, '/path'], mw)) missing prefixing, caseSensitive, and stateful RegExp flag cleanup | 4.0.14 |
CVE-2026-135230 (GHSA-x6w9-3qcm-vp2j) | @fastify/express 4.0.3–<4.0.14 | 7.4 High | Percent-encoded Unicode line/paragraph separators decoded raw, breaking . RegExp mount matchers | 4.0.14 |
CVE-2026-135205 (GHSA-4c7f-6888-3vrh) | @fastify/middie 9.3.6–<9.3.10 | 7.4 High | Mount paths without leading / inside prefixed plugins (use('secret', auth) → /api/secret vs route /apisecret) | 9.3.10 |
Operator actions
- Upgrade immediately to
@fastify/express >= 4.0.14and@fastify/middie >= 9.3.10. - Do not enforce authentication solely inside path-scoped Express middleware mounted via
.use(); enforce authentication and authorization in native FastifypreHandler/onRequesthooks after route resolution.