PatchSiren cyber security CVE debrief
CVE-2026-112362 @fastify/express CVE debrief
CVE-2026-112362 is a critical vulnerability in the @fastify/express plugin for Fastify, which allows an attacker to bypass path-scoped middleware via absolute-form request targets when the non-default ignoreDuplicateSlashes option is enabled. This issue affects versions 4.0.5 through 4.0.8 and is fixed in version 4.0.9. Users should upgrade to 4.0.9 or later to mitigate this vulnerability.
- Vendor
- @fastify/express
- Product
- Unknown
- CVSS
- CRITICAL 9.1
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-27
- Original CVE updated
- 2026-11-04
- Advisory published
- 2026-10-27
- Advisory updated
- 2026-11-04
Who should care
Defenders responsible for Fastify applications using the @fastify/express plugin should assess exposure and prioritize upgrading to version 4.0.9 or later. This vulnerability is particularly relevant for systems with non-default ignoreDuplicateSlashes option enabled, as it could allow unauthorized access to sensitive routes.
Why it matters
CVE-2026-112362 is a critical vulnerability in @fastify/express that allows an attacker to bypass path-scoped middleware, potentially leading to unauthorized access or other security issues. Defenders should prioritize upgrading to version 4.0.9 or later, especially if the non-default ignoreDuplicateSlashes option is enabled.
- Potential unauthorized access to sensitive routes
- Bypass of authentication, authorization, or rate limiting middleware
- Increased risk of security breaches due to middleware bypass
- Need for verification of current version and configuration
Technical summary
The @fastify/express plugin for Fastify is vulnerable to a path-scoped middleware bypass when the ignoreDuplicateSlashes option is enabled. This occurs because the plugin matches path-scoped Express middleware against a URL whose duplicate-slash normalization has collapsed the separator after an absolute-form request target's scheme. As a result, an attacker can reach a handler on a scoped route, such as an admin path, while skipping middleware for authentication, authorization, or rate limiting.
Defensive priority
High
Recommended defensive actions
- Upgrade to @fastify/express version 4.0.9 or later
- Enforce authentication in a Fastify hook such as preHandler that runs after the router resolves the request
- Leave ignoreDuplicateSlashes at its default value
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
Evidence notes
The vulnerability is caused by the plugin's handling of absolute-form request targets when the ignoreDuplicateSlashes option is enabled. This allows an attacker to bypass path-scoped middleware, potentially leading to unauthorized access or other security issues.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-112362 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-112362
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-112362 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-112362
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
@fastify/express vulnerable to path-scoped middleware bypass via absolute-form request targets
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/112xxx/CVE-2026-112362.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://github.com/fastify/fastify-express/security/advisories/GHSA-6h42-57hq-9746
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://cna.openjsf.org/security-advisories.html
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.