# CVE-2026-112362 - @fastify/express vulnerable to path-scoped middleware bypass via absolute-form request targets

DevFeed: [CVE-2026-112362 - @fastify/express vulnerable to path-scoped middleware bypass via absolute-form request targets](<https://devfeed.tech/articles/cve-2026-112362-fastify-express-vulnerable-to-path-scoped-middleware-bypass-via-absolute-form-request-targets-102067.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-112362>)

Author: CVEFEED.io

Published: 2026-10-27T12:17:04Z

Content type: article

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Fastify](<https://devfeed.tech/topics/fastify.md>), [Express](<https://devfeed.tech/topics/express.md>), [middleware](<https://devfeed.tech/topics/middleware.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [absolute](<https://devfeed.tech/tags/absolute.md>), [admin](<https://devfeed.tech/tags/admin.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [bypass](<https://devfeed.tech/tags/bypass.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-112362](<https://devfeed.tech/tags/cve-2026-112362.md>), [cvss](<https://devfeed.tech/tags/cvss.md>), [express](<https://devfeed.tech/tags/express.md>), [fastify](<https://devfeed.tech/tags/fastify.md>), [fastify-express](<https://devfeed.tech/tags/fastify-express.md>), [fixed](<https://devfeed.tech/tags/fixed.md>), [handler](<https://devfeed.tech/tags/handler.md>), [issue](<https://devfeed.tech/tags/issue.md>), [layer](<https://devfeed.tech/tags/layer.md>), [middleware](<https://devfeed.tech/tags/middleware.md>), [option](<https://devfeed.tech/tags/option.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [request](<https://devfeed.tech/tags/request.md>)

## AI overview

In @fastify/express 4.0.5-4.0.8, enabling Fastify's non-default ignoreDuplicateSlashes option can let an absolute-form request target reach a scoped route after slash normalization while bypassing the path-scoped Express middleware for that route. This may skip authentication, authorization, or rate limiting; the description says an unauthenticated attacker can exploit the condition. Upgrade to 4.0.9 or later. As a workaround, enforce authentication in a Fastify hook such as preHandler, or leave ignoreDuplicateSlashes at its default.

## Source excerpt

CVE ID :CVE-2026-112362 Published : Oct. 27, 2026, 12:17 p.m. | 28 minutes ago Description :@fastify/express is a Fastify plugin that runs Express middleware inside Fastify. In versions 4.0.5 through 4.0.8, when Fastify runs with the non-default ignoreDuplicateSlashes option enabled, the plugin matches path-scoped Express middleware against a URL whose duplicate-slash normalization has also collapsed the separator after an absolute-form request target's scheme, so Fastify's router resolves the request to the scoped path and runs the handler while the Express layer no longer sees that path. As a result, a request using an absolute-form target can reach a handler on a scoped route such as an admin path while the middleware for authentication, authorization, or rate limiting is skipped. An unauthenticated attacker needs only the non-default ignoreDuplicateSlashes option to be enabled. The issue is fixed in @fastify/express 4.0.9, and users should upgrade to 4.0.9 or later. As a workaround, enforce authentication in a Fastify hook such as preHandler that runs after the router resolves the request, or leave ignoreDuplicateSlashes at its default. Severity: 9.1 | CRITICAL Visit the link for more details, such as CVSS details, affected products, timeline, and more...