Home › CVE › Network devices
CVE-2026-132131 — @fastify/middie
One of 3 @fastify/middie vulnerabilities published together by NVD: our article covers all of them.
Network devicesVulnerabilitiesResearch article
CVE-2026-132131: @fastify/middie Middleware Path Handling Flaw
| CVE | CVE-2026-132131 |
|---|---|
| Vendor and product | @fastify/middie |
| Published | November 24, 2026 01:45 UTC |
| Research cut-off | November 24, 2026 00:50 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-23); CISA KEV catalog; FIRST EPSS (2026-11-22) |
Executive summary
CVE-2026-132131 impacts @fastify/middie versions 8.3.0 through 9.3.6, enabling unauthenticated access to protected routes due to flawed path normalization [1]. The CVSS 3.1 score is 7.4 HIGH, indicating significant risks to confidentiality and integrity [1]. The reviewed sources do not confirm exploitation [2]. The recommended action is to update to version 9.3.7 or newer [1].
Key points
- CVE-2026-132131 affects @fastify/middie versions 8.3.0 through 9.3.6 [1].
- The CVSS 3.1 score is 7.4 HIGH, indicating high risks to confidentiality and integrity [1].
- The reviewed sources do not confirm exploitation [2].
- The vulnerability allows unauthenticated clients to bypass path-scoped middleware [1].
- Users should upgrade to @fastify/middie 9.3.7 or later to resolve the issue [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-132131 | Fastify | @fastify/middie | CWE-1287 | 7.4 HIGH, scored by ce714d77-add3-4f53-aff5-83d477b104bb | 2026-11-19T12:18:40 | 2026-11-23T16:17:32 | Awaiting Analysis |
Vulnerability description
The middleware engine @fastify/middie allows unauthenticated clients to bypass path-scoped middleware in specific configurations. When an array of mount paths is used, a trailing slash on an element may persist in the route-matching regular expression, and a root path element may be ignored entirely [1]. This vulnerability enables requests targeting subroutes under the compromised mount paths to bypass the middleware that is scoped to those paths, such as authentication or authorization, while still being routed to the correct handler [1].
Attack surface and exploitation prerequisites
The CVSS 3.1 score from the secondary scorer indicates the vulnerability is reachable over the network, needs no user interaction, and has high impact on confidentiality and integrity [1]. The attack can be executed without any prior authentication, and the attacker does not need to have any privileges (PR:N) [1].
Impact analysis
The flaw allows an unauthenticated client to reach protected routes [1]. The CVSS 3.1 vector highlights high impact on confidentiality and integrity, with no effect on availability (A:N) [1].
Affected products and versions
| Affected | Fixed |
|---|---|
| @fastify/middie ≥ 8.3.0, < 9.3.7 | 9.3.7 |
Exploitation and threat intelligence status
CVE-2026-132131 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-24 [2]. The EPSS score for this CVE is 0.0050 (0.50%), suggesting a low estimated probability of exploitation activity within the next 30 days [3].
Detection and exposure assessment
To determine if an application is affected, check if it uses @fastify/middie versions 8.3.0 through 9.3.6 [1]. The CVE record does not give detection steps [1].
Remediation
The vulnerability is resolved in @fastify/middie 9.3.7, and users are advised to upgrade to version 9.3.7 or later [1]. As an alternative, enforce authorization using a Fastify hook like preHandler that runs after routing, and avoid using array mount paths with a trailing slash for security-critical middleware [1].
Remediation checklist
Evidence gaps
- The sources do not describe the internal workings of the affected component.
- The sources do not mention a workaround.
- The sources do not explain the technical mechanics of the flaw.
- The sources do not provide a scenario of exploitation.
- The sources do not include indicators of compromise.
References
- CVE-2026-132131 record. NIST National Vulnerability Database (NVD), 2026-11-23. https://nvd.nist.gov/vuln/detail/CVE-2026-132131. Accessed 2026-11-24.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-24. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-24.
- EPSS score for CVE-2026-132131. FIRST, 2026-11-22. https://api.first.org/data/v1/epss?cve=CVE-2026-132131. Accessed 2026-11-24.
Summary
@fastify/middie is the middleware engine that adds Express and Connect style middleware support to Fastify. In versions 8.3.0 through 9.3.6, the internal helper that normalizes a path-scoped middleware's mount path only handles string inputs, but the use method also accepts an array of mount paths and passes it through unchanged, so the normalization silently does nothing. As a result, a trailing slash on an array element survives into the generated route-matching regular expression, and an element that is exactly the root path, meaning a catch-all mount, is dropped entirely. Requests to subroutes of the affected mount paths then skip the path-scoped middleware, such as authentication, authorization, or rate limiting, while Fastify's router still dispatches them to the handler, allowing an unauthenticated client to reach protected routes. Applications are affected when they mount middleware on an array of paths in which an element ends with a slash, including one introduced by a plugin prefix that ends with a slash, or is exactly the root path. The issue is fixed in @fastify/middie 9.3.7, and users should upgrade to 9.3.7 or later. As a workaround, enforce authorization in a Fastify hook such as preHandler that runs after routing, and avoid array mount paths with a trailing slash element for security relevant middleware.
Severity breakdown
High · 7.4
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality and integrity, none on availability
Weakness
- CWE-1287: Improper Validation of Specified Type of Input
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| @fastify/middie | ≥ 8.3.0, < 9.3.7 | 9.3.7 |
References by type
Vendor advisories
Other references
Affected
- @fastify/middie
Frequently asked questions
What is CVE-2026-132131?
CVE-2026-132131 impacts @fastify/middie versions 8.3.0 through 9.3.6, enabling unauthenticated access to protected routes due to flawed path normalization. The CVSS 3.1 score is 7.4 HIGH, indicating significant risks to confidentiality and integrity. The reviewed sources do not confirm exploitation. The recommended action is to update to version 9.3.7 or newer. Weakness type: Improper Validation of Specified Type of Input (CWE-1287).
How severe is CVE-2026-132131?
CVE-2026-132131 has a CVSS 3.1 base score of 7.4 (high), from the CNA. An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-132131 being exploited?
Not as far as is known: CVE-2026-132131 is not in CISA's Known Exploited Vulnerabilities catalog as of November 28, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-132131?
@fastify/middie ≥ 8.3.0, < 9.3.7 (fixed in 9.3.7).
How do I fix CVE-2026-132131?
Upgrade @fastify/middie to version 9.3.7 or later. Implement authorization checks through a Fastify hook like preHandler, which executes after the routing process has been completed. Avoid using array mount paths with a trailing slash for security-critical middleware.