CVE-2026-132131
@fastify/middie vulnerable to path-scoped middleware bypass via array mount-path type confusion
No exploitation reported by the sources we read.
- Published2026-11-19
- WeaknessCWE-1287
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
@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.
Timeline
dates in UTC- 2026-11-1911:33CVE publishedCNA
Versions per branch
Products declared by the CNA
As openjs, the CNA that assigned this CVE, declared them in the CVE record; versions as written. NVD lists no product for this CVE yet: this is the only product data so far.
- @fastify/middieother versions: not affectedAffected
- ≥ 8.3.0, < 9.3.7fixed in 9.3.7semver
Not affected = 9.3.7
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-11-19
Neither OSV.dev nor the vendor advisories we read list affected versions for CVE-2026-132131 yet.
Fix
No fix published by the sources we read yet. NVD record
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Metasploit modules
- none listed Metasploit Framework
Sources
Identifiers
- EUVD-2026-129786same flawENISA EUVD · LicenseRef-ENISA-legal-notice
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Published
- 2026-11-19
- Last Modified
- 2026-11-19
- NVD status
- Received
Frequently asked questions
What is CVE-2026-132131?
Is CVE-2026-132131 actively exploited?
What is the CVSS score for CVE-2026-132131?
Hear about the next vulnerability in your software
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2026-92182same weekNetgate pfSense CE XMLRPC Incorrect Authorization Remote Code Execution Vulnerability
- CVE-2026-126967same weekSmarterTools SmarterMail File Edit API Directory Traversal Remote Code Execution Vulnerability
- CVE-2026-101113same week
- CVE-2026-129448same week
- CVE-2026-124223same weekMicrosoft Office SharePoint Remote Code Execution Vulnerability
- CVE-2026-129943same weekPrime CMS through 0.4.0-beta.0 OS Command Injection via updateSystem Mutation
- CVE-2026-19732same weekOS Command Injection vulnerability affecting Station Launcher App in 3DEXPERIENCE platform from Release 3DEXPERIENCE R2023x through Release 3DEXPERIENCE R2026x
- CVE-2026-113630same weekONLYOFFICE Docs Local Privilege Escalation to Root via Sed Command Injection in documentserver-flush-cache.sh