@fastify/middie versions 9.1.0 through 9.3.2 decode the encoded slash %2F inside path parameter values before matching middleware paths, while Fastify's underlying router preserves the encoding during route lookup. The two layers disagree on the canonical request path, so the mid...
Vendor
fastify vulnerabilities
70 published CVES affecting fastify, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 70
- Critical
- 14
- High
- 36
- Medium
- 19
- Low
- 1
- Unscored
- 0
- CISA KEV
- 0
Products
- fastify 16
- fastify-static 7
- fastifymiddie 7
- fastify-multipart 6
- @fastify/static 4
- fastifyhttp-proxy 4
- middie 4
- @fastify/busboy 3
- @fastify/express 3
- @fastify/express 3
- @fastify/reply-from 3
- fastify-reply-from 3
- fastifybusyboy 3
- @fastify/multipart 2
- @fastify/passport 2
- fastify-csrf 2
- fastify-passport 2
- @fastify/accepts-serializer 1
- @fastify/bearer-auth 1
- @fastify/csrf-protection 1
- @fastify/http-proxy 1
- @fastify/oauth2 1
- @fastify/secure-session 1
- @fastify/session 1
- @fastify/swagger-ui 1
- @fastify/websocket 1
- fastify-bearer-auth 1
- fastify-express 1
- fastify-http-proxy 1
- fastify-secure-session 1
Latest fastify CVEs
Newest publication first · page 2 of 3
-
CriticalCVSS 9.1 EPSS 0.52%
-
CriticalCVSS 9.1 EPSS 0.52%
@fastify/express versions 4.0.6 and earlier only rewrite the plugin prefix for middleware mount paths when the path argument is a string. Non-string mount paths (arrays of paths and regular expressions) are left unprefixed inside prefixed plugin scopes, so middleware registered w...
-
HighCVSS 7.5 EPSS 0.28%
@fastify/accepts-serializer cached serializer-selection results keyed by the request Accept header without a size limit or eviction policy. A remote unauthenticated client could send many distinct but matching Accept header variants to make the cache grow unbounded, eventually ex...
-
CriticalCVSS 9.1 EPSS 0.29%
@fastify/middie versions 9.3.1 and earlier are vulnerable to middleware bypass when the deprecated Fastify ignoreDuplicateSlashes option is enabled. The middleware path matching logic does not account for duplicate slash normalization performed by Fastify's router, allowing reque...
-
CVE-2026-6270 @fastify/middie vulnerable to middleware authentication bypass in child plugin scopes
PublishedCriticalCVSS 9.1 EPSS 0.51%@fastify/middie versions 9.3.1 and earlier do not register inherited middleware directly on child plugin engine instances. When a Fastify application registers authentication middleware in a parent scope and then registers child plugins with @fastify/middie, the child scope does...
-
MediumCVSS 5.3 EPSS 0.53%
@fastify/static versions 8.0.0 through 9.1.0 allow path traversal when directory listing is enabled via the list option. The dirList.path() function resolves directories outside the configured static root using path.join() without a containment check. A remote unauthenticated att...
-
CVE-2026-6414 @fastify/static vulnerable to route guard bypass via encoded path separators
PublishedMediumCVSS 5.9 EPSS 0.43%@fastify/static versions 8.0.0 through 9.1.0 decode percent-encoded path separators (%2F) before filesystem resolution, while Fastify's router treats them as literal characters. This mismatch allows attackers to bypass route-based middleware or guards that protect files served by...
-
CriticalCVSS 9.0 EPSS 0.46%
@fastify/reply-from v12.6.1 and earlier and @fastify/http-proxy v11.4.3 and earlier process the client's Connection header after the proxy has added its own headers via rewriteRequestHeaders. This allows attackers to retroactively strip proxy-added headers from upstream requests...
-
CriticalCVSS 9.1 EPSS 0.45%
@fastify/express v4.0.4 and earlier contains a path handling bug in the onRegister function that causes middleware paths to be doubled when inherited by child plugins. When a child plugin is registered with a prefix that matches a middleware path, the middleware path is prefixed...
-
CriticalCVSS 9.1 EPSS 0.49%
Impact@fastify/express v4.0.4 and earlier fails to normalize URLs before passing them to Express middleware when Fastify router normalization options are enabled. This allows complete bypass of path-scoped authentication middleware via duplicate slashes when ignoreDuplicateSlashe...
-
HighCVSS 7.5 EPSS 0.46%
Impact: Fastify applications using schema.body.content for per-content-type body validation can have validation bypassed entirely by prepending a space to the Content-Type header. The body is still parsed correctly but schema validation is skipped. This is a regression introduced...
-
MediumCVSS 6.1 EPSS 0.17%
Summary When trustProxy is configured with a restrictive trust function (e.g., a specific IP like trustProxy: '10.0.0.1', a subnet, a hop count, or a custom function), the request.protocol and request.host getters read X-Forwarded-Proto and X-Forwarded-Host headers from any conne...
-
MediumCVSS 5.3 EPSS 0.39%
Fastify incorrectly accepts malformed Content-Type headers containing trailing characters after the subtype token, in violation of RFC 9110 §8.3.1(https://httpwg.org/specs/rfc9110.html#field.content-type). For example, a request sent with Content-Type: application/json garbage pa...
-
HighCVSS 8.2 EPSS 0.42%
A vulnerability in @fastify/middie versions < 9.2.0 can result in authentication/authorization bypass when using path-scoped middleware (for example, app.use('/secret', auth)). When Fastify router normalization options are enabled (such as ignoreDuplicateSlashes, useSemicolonDeli...
-
HighCVSS 7.5 EPSS 0.86%
Fastify is a fast and low overhead web framework, for Node.js. Prior to version 5.7.2, a validation bypass vulnerability exists in Fastify where request body validation schemas specified by Content-Type can be completely circumvented. By appending a tab character (\t) followed by...
-
LowCVSS 3.7 EPSS 0.55%
Fastify is a fast and low overhead web framework, for Node.js. Prior to version 5.7.3, a denial-of-service vulnerability in Fastify’s Web Streams response handling can allow a remote client to exhaust server memory. Applications that return a ReadableStream (or Response with a We...
-
CVE-2026-22037 @fastify/express vulnerable to Improper Handling of URL Encoding (Hex Encoding)
PublishedHighCVSS 8.4 EPSS 0.35%The @fastify/express plugin adds full Express compatibility to Fastify. A security vulnerability exists in @fastify/express prior to version 4.0.3 where middleware registered with a specific path prefix can be bypassed using URL-encoded characters (e.g., /%61dmin instead of /admi...
-
HighCVSS 8.8 EPSS 0.53%
@fastify/middie is the plugin that adds middleware support on steroids to Fastify. A security vulnerability exists in @fastify/middie prior to version 9.1.0 where middleware registered with a specific path prefix can be bypassed using URL-encoded characters (e.g., /%61dmin instea...
-
MediumCVSS 6.9 EPSS 0.19%
fastify-reply-from is a Fastify plugin to forward the current HTTP request to another server. Prior to 12.5.0, by crafting a malicious URL, an attacker could access routes that are not allowed, even though the reply.from is defined for specific routes in @fastify/reply-from. This...
-
HighCVSS 7.5 EPSS 0.74%
Fastify is a fast and low overhead web framework, for Node.js. In versions 5.0.0 to 5.3.0 as well as version 4.29.0, applications that specify different validation strategies for different content types have a possibility to bypass validation by providing a slightly altered conte...
-
HighCVSS 7.5 EPSS 0.60%
@fastify/multipart is a Fastify plugin for parsing the multipart content-type. Prior to versions 8.3.1 and 9.0.3, the saveRequestFiles function does not delete the uploaded temporary files when user cancels the request. The issue is fixed in versions 8.3.1 and 9.0.3. As a workaro...
-
HighCVSS 7.4 EPSS 0.45%
@fastify/session is a session plugin for fastify. Requires the @fastify/cookie plugin. When restoring the cookie from the session store, the expires field is overriden if the maxAge field was set. This means a cookie is never correctly detected as expired and thus expired session...
-
HighCVSS 7.4 EPSS 0.62%
@festify/secure-session creates a secure stateless cookie session for Fastify. At the end of the request handling, it will encrypt all data in the session with a secret key and attach the ciphertext as a cookie value with the defined cookie name. After that, the session on the se...
-
MediumCVSS 5.3 EPSS 2.3% Scanner template
fastify-swagger-ui is a Fastify plugin for serving Swagger UI. Prior to 2.1.0, the default configuration of @fastify/swagger-ui without baseDir set will lead to all files in the module's directory being exposed via http routes served by the module. The vulnerability is fixed in v...
-
HighCVSS 7.5 EPSS 0.48%
fastify-reply-from is a Fastify plugin to forward the current HTTP request to another server. A reverse proxy server built with @fastify/reply-from could misinterpret the incoming body by passing an header ContentType: application/json ; charset=utf-8. This can lead to bypass of...
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.