critical

CVE

CVE-2026-133120, CVE-2026-129504, CVE-2026-124626, CVE-2026-133867, CVE-2026-129850, CVE-2026-133250, CVE-2026-132131, CVE-2026-132128, CVE-2026-132133, CVE-2026-133212, CVE-2026-130886, CVE-2026-127064, CVE-2026-124289, CVE-2026-110710, CVE-2026-129500, CVE-2026-129502, CVE-2026-130647, CVE-2026-127060, CVE-2026-133111, CVE-2026-124724, CVE-2026-128835, CVE-2026-128842, CVE-2026-128846, CVE-2026-130811, CVE-2026-115515, CVE-2026-121192

CWE

CWE-863, CWE-444, CWE-22, CWE-843, CWE-248, CWE-400, CWE-1385, CWE-348

Affected Surface

  • npm `@fastify/express` before `4.0.10` (five advisories, four critical CVSS 9.1)
  • npm `@fastify/middie` before `9.3.8` (CVE-2026-133250, critical) and before `9.3.7` (three more bypasses)
  • npm `@fastify/reply-from` before `12.9.1` (CVE-2026-133212, critical, core http transport only) and before `12.8.4` (two path traversals); `@fastify/http-proxy` uses it for HTTP
  • npm `@fastify/multipart` `>= 7.4.0, < 10.1.9` with `attachFieldsToBody` and `saveRequestFiles()` (CVE-2026-124289)
  • npm `@fastify/http-proxy` before `11.6.10` with `websocket: true`; `@fastify/busboy` before `3.2.6`; `@fastify/static` before `10.1.12`; `@fastify/proxy-addr` `>= 3.0.0, < 5.1.3`

TL;DR

The Fastify team spent the week of 16 November closing parser mismatches across its plugin ecosystem. By 20 November it had published 26 advisories in eight packages, with CVEs assigned by the OpenJS Foundation CNA. Six are critical. No public exploit code or in-the-wild use has been reported, but most of the advisories include the exact request that triggers the bug.

Most of the critical bugs are in @fastify/express and @fastify/middie, the two plugins that let you run Express-style middleware inside Fastify. They decide whether a path-scoped middleware such as app.use('/admin', requireAuth) applies by reading the request path themselves, while Fastify’s router (find-my-way) decides which handler runs. When the two readings disagree, the handler runs and the middleware doesn’t. Depending on the setup, requests like GET *admin, /tenant//admin, /tenant/x%5C%20/admin or /api/%E2%84%AAeys were enough.

The other critical one is request smuggling in @fastify/reply-from. On the core Node.js http transport, the plugin forwarded the client’s Content-Length even when it sent no body upstream. The upstream then read the client’s next request on that keep-alive socket as the missing body, so an unauthenticated client could send arbitrary requests to the upstream, past the proxy’s routes and auth hooks.

@fastify/multipart also had a bug where a JSON body could pose as an uploaded file, carrying an attacker-chosen filename such as ../../../../package.json.

What to do now: run npm ls for the packages below and move to the fixed versions. A lockfile refresh is enough for @fastify/busboy (via @fastify/multipart) and @fastify/proxy-addr (via fastify), since both are pulled in with caret ranges. If you rely on path-scoped Express middleware for authentication, move that check into a Fastify preHandler hook that looks at request.routeOptions.url. That is the workaround the maintainers give for every bypass in this batch.

Affected packages and projects

Weekly npm downloads are from 20 November 2026.

EcosystemPackageCVE (GHSA)SeverityAffected versionsFixed version
npm@fastify/express (110k/week)CVE-2026-133120 (GHSA-w877-hjcp-88rc)Critical 9.1< 4.0.104.0.10
npm@fastify/expressCVE-2026-129504 (GHSA-f44m-4qwg-5587)Critical 9.1>= 4.0.0, < 4.0.104.0.10
npm@fastify/expressCVE-2026-124626 (GHSA-662w-h4p6-jq4p)Critical 9.1>= 4.0.5, < 4.0.104.0.10
npm@fastify/expressCVE-2026-133867 (GHSA-84w6-xrf3-f8q8)Critical 9.1>= 4.0.7, < 4.0.104.0.10
npm@fastify/expressCVE-2026-129850 (GHSA-6rmc-f24g-hmp6)High 7.4>= 4.0.0, < 4.0.104.0.10
npm@fastify/middie (3.1M/week)CVE-2026-133250 (GHSA-gcf6-j9m3-p97x)Critical 9.1< 9.3.89.3.8
npm@fastify/middieCVE-2026-132131 (GHSA-hfwp-44m5-9364)High 7.4< 9.3.79.3.7
npm@fastify/middieCVE-2026-132128 (GHSA-r5h5-r25j-5vhr)High 7.4< 9.3.79.3.7
npm@fastify/middieCVE-2026-132133 (GHSA-56jq-34pf-p873)Medium 4.8< 9.3.79.3.7
npm@fastify/reply-from (775k/week)CVE-2026-133212 (GHSA-mx78-9mrq-rfm5)Critical 9.0< 12.9.112.9.1
npm@fastify/reply-fromCVE-2026-130886 (GHSA-2ccw-8rvh-6cmg)High 8.2>= 12.8.1, < 12.8.412.8.4
npm@fastify/reply-fromCVE-2026-127064 (GHSA-6mph-mjg3-f943)High 8.2< 12.8.412.8.4
npm@fastify/multipart (4.7M/week)CVE-2026-124289 (GHSA-gmhr-r4mc-w935)High 7.5>= 7.4.0, < 10.1.910.1.9
npm@fastify/multipartCVE-2026-110710 (GHSA-r9rg-mfh6-f225)High 7.5>= 3.0.0, < 10.1.410.1.4
npm@fastify/http-proxy (583k/week)CVE-2026-129500 (GHSA-q659-79j2-32h5)High 7.5>= 9.0.0, < 11.6.1011.6.10
npm@fastify/http-proxyCVE-2026-129502 (GHSA-29w6-p7r8-xmf9)High 7.5>= 9.4.0, < 11.6.1011.6.10
npm@fastify/http-proxyCVE-2026-130647 (GHSA-6fhg-8r33-fcww)High 7.5>= 9.0.0, < 11.6.1011.6.10
npm@fastify/http-proxyCVE-2026-127060 (GHSA-7mjf-mp6r-87p8)Medium 6.5< 11.6.1011.6.10
npm@fastify/http-proxyCVE-2026-133111 (GHSA-w3r4-6w5h-3vrc)Medium 5.9>= 7.1.0, < 11.6.1011.6.10
npm@fastify/busboy (54.6M/week)CVE-2026-124724 (GHSA-wh8h-qr34-3rj3)High 7.5>= 1.0.0, < 3.2.63.2.6
npm@fastify/busboyCVE-2026-128835 (GHSA-pvmq-3jr9-v5qh)High 7.5< 3.2.63.2.6
npm@fastify/busboyCVE-2026-128842 (GHSA-x578-65c5-rvww)Medium 5.3< 3.2.63.2.6
npm@fastify/busboyCVE-2026-128846 (GHSA-2q57-jvxc-h47j)Low 3.7>= 3.2.1, < 3.2.63.2.6
npm@fastify/static (8.8M/week)CVE-2026-130811 (GHSA-7533-p376-8gg5)Medium 5.3< 10.1.1210.1.12
npm@fastify/staticCVE-2026-115515 (GHSA-p497-qc9q-9hgx)Medium 5.3< 10.1.810.1.8
npm@fastify/proxy-addr (21.4M/week)CVE-2026-121192 (GHSA-fmr2-3fr5-78g8)Medium 6.8>= 3.0.0, < 5.1.35.1.3

Two of these fixes are older than the advisories: @fastify/multipart 10.1.4 shipped on 15 October and @fastify/static 10.1.8 on 27 October. The advisories went public this week.

Technical analysis

1. @fastify/express and @fastify/middie: two routers, two answers

With @fastify/express, a request goes through Fastify’s router first, which picks the handler. Then the plugin rebuilds a URL, hands it to Express, and Express decides which app.use() mounts match. @fastify/middie does the same with its own path-to-regexp matcher. Any input the two parse differently is a bypass, and the advisories list several.

Asterisk-form targets (CVE-2026-133120, CVE-2026-133250). HTTP allows * as a request target for OPTIONS *. find-my-way skips the first character of the path, so GET *admin is routed to /admin. Express and middie match the target as sent, so a mount on /admin doesn’t fire. This affected every release of both plugins and also skipped plain static mounts. The fix in 94f6eccbe6:

   const originFormUrl = getPathFromAbsoluteUrl(url)
-  if (originFormUrl === null) {
+  // Only the asterisk-form (`OPTIONS *`) may not start with `/`. find-my-way
+  // skips the first character of the path, so Fastify routes `*admin` as
+  // `/admin`, while Express would not match it against a mount on `/admin`.
+  if (originFormUrl === null || (originFormUrl[0] !== '/' && originFormUrl !== '*')) {
     return null
   }

Decoding mismatches (CVE-2026-133120). Since 4.0.3, @fastify/express percent-decoded the whole URL before Express saw it. Express reads req.url with parseurl, which falls back to the legacy url.parse() when the URL contains whitespace or #, and url.parse() rewrites \ to /. So /tenant/x%5C%20/admin reached the /tenant/:id/admin handler while Express saw a different path and skipped the middleware. Decoding the whole URL also decoded %25 twice: /acct/%2561lice gave alice to the middleware and %61lice to the handler. The fix in 86f314ce37 builds the Express URL the way find-my-way builds its routing path:

-  let decodedUrl
+  const { path, query } = splitPathAndQuery(originFormUrl, useSemicolonDelimiter)
+
+  let decodedPath
   try {
-    decodedUrl = decodeURI(originFormUrl)
+    decodedPath = decodeURI(path.replaceAll('%25', '%2525'))
+    decodeURI(query)
   } catch {
     return null
   }
 
-  const { path, query } = splitPathAndQuery(decodedUrl, useSemicolonDelimiter)
-  const normalizedPath = ignoreDuplicateSlashes ? removeDuplicateSlashes(path) : path
+  const normalizedPath = ignoreDuplicateSlashes ? removeDuplicateSlashes(decodedPath) : decodedPath
 
-  return normalizedPath + query
+  return encodeParseurlFallbackChars(normalizedPath + query)
 }
+
+const PARSEURL_FALLBACK_CHARS = /[\t\n\f\r #\u00a0\ufeff]/g
  • The query string is split off before decoding and left encoded, so Express decodes it once, like Fastify does.
  • %25 is kept encoded in the path, so a literal % isn’t decoded a second time when Express decodes route parameters.
  • Characters that would push parseurl onto url.parse() are re-encoded, so \ never turns into / on the Express side.

Empty parameters (CVE-2026-124626, CVE-2026-133250). find-my-way accepts an empty value for :id or *. path-to-regexp requires at least one character. GET /tenant/ therefore matches a /tenant/:tenantId route but not an app.use('/tenant/:tenantId', auth) mount. middie had the same problem with /tenant//admin against /tenant/:id/admin.

Prefix joins (CVE-2026-129504, CVE-2026-133867). Inside a plugin registered with a prefix, the mount path was built by string concatenation. A prefix ending in / or a mount path without a leading slash produced an Express path that never matched the route Fastify served. Under a parameterized prefix such as /tenant/:tenantId, a RegExp mount like /^\/private/ was compiled against the literal text :tenantId, so it never matched acme. No crafted request is needed for these two: normal traffic skips the middleware.

Unicode case folding (CVE-2026-129850, CVE-2026-132128). With caseSensitive: false, find-my-way lowercases the path with toLowerCase(), which turns U+212A KELVIN SIGN into k. Express and middie match with a case-insensitive regex that doesn’t fold it. /api/%E2%84%AAeys reaches the /api/keys handler and skips the /api/keys middleware.

2. @fastify/reply-from 12.9.1: an unsatisfied Content-Length (CVE-2026-133212)

@fastify/reply-from copies the client’s headers onto the upstream request. Fastify doesn’t read a body on GET, HEAD or TRACE, and the plugin skipped any parsed JSON body that was falsy (null, 0, false, ""). In both cases the plugin sent no body but still forwarded the client’s Content-Length.

On the default undici transport and on HTTP/2 that doesn’t matter. On the core Node.js http transport (the http option, undici: false, or any release before 5.0.0 where it was the default), the keep-alive socket goes back to the pool still owing the upstream those bytes. The next request written to that socket is read by the upstream as the tail of the previous body. An attacker who sets Content-Length to the size of a following request gets that request executed upstream, outside the proxy’s routes, hooks and authentication, and can read the response. The same trick can also pin pooled connections until they time out.

The fix in 2f4307a65e:

-  } else if (reply.request.body) {
+  } else if (reply.request.body !== undefined) {
+    // Compare with undefined rather than test truthiness: a JSON body such
+    // as null, 0, false or "" was parsed and must be forwarded too.
     if (reply.request.body instanceof Stream) {
       body = reply.request.body
@@
+  if (!body && headers['content-length'] !== undefined) {
+    headers['content-length'] = 0
+  }
  • The first change forwards falsy JSON bodies instead of silently dropping them, which also fixes data loss on undici.
  • The second resets Content-Length to 0 whenever nothing is written, so the length announced upstream always matches the bytes sent.

The two 12.8.4 fixes are path traversals in buildURL(). http:%2e%2e%2fsecret.txt passed the dot-segment check because the segment read as http:.., while the WHATWG URL parser dropped the matching scheme and forwarded %2e%2e%2fsecret.txt (CVE-2026-130886, a regression from the 12.8.1 fix). And ..; or ..;jsessionid=x didn’t equal .., but Tomcat, Jetty, WildFly and Spring Boot strip ; parameters and resolve it as .. (CVE-2026-127064). @fastify/http-proxy 11.6.10 fixes the same ..; bug on its WebSocket path (CVE-2026-127060), which doesn’t go through reply-from.

3. @fastify/multipart 10.1.9: a JSON object that looks like a file (CVE-2026-124289)

With attachFieldsToBody: true or 'keyValues', request.saveRequestFiles() walked request.body and treated any object with truthy file and _buf properties as an upload. This is the relevant code in 10.1.8, abridged:

async function saveRequestFiles (options) {
  // ...
  if (attachFieldsToBody === true || attachFieldsToBody === 'keyValues') {
    parts = this.body ? filesFromFields.call(this, this.body) : []   // no isMultipart() check
    values = this.body || {}
  }
  // ...
  for await (const part of parts) {
    values = part.fields
    if (!part.file) continue
    const filepath = path.join(tmpdir, generateId() + safeExtension(part.filename || ('file' + i++)))
    // ... writes part.file to filepath
    this.savedRequestFiles.push({ ...part, filepath })   // attacker's filename kept verbatim
  }
}

function * filesFromFields (container) {
  for (const field of Object.values(container)) {
    if (!field.file) continue          // any truthy "file" property
    if (!field._buf) throw new FileBufferNotFoundError()
    field.file = Readable.from(field._buf)   // attacker-supplied string becomes the file
    yield field
  }
}
  • Fastify passes a non-multipart request (for example application/json) straight through with its parsed body in request.body. A JSON-typed multipart field is also parsed into an object.
  • So a body like {"avatar":{"file":true,"_buf":"<bytes>","filename":"../../../../package.json","fields":{...}}} gets written to the temp directory as an “upload”. The onFile hook and the files and fileSize limits never run, and the returned values come from the attacker.
  • The temp path itself is safe (generateId() plus a sanitized extension). The damage happens when the app uses file.filename as a destination, which is what the plugin’s README example does. Real multipart filenames are reduced to their basename; forged ones kept the ../ sequence.

The fix brands every wrapper the parser creates with a module-private Symbol, only calls filesFromFields() when this.isMultipart() is true, and rejects anything without the brand:

+const kFileField = Symbol('fileField')
@@
-      parts = this.body ? filesFromFields.call(this, this.body) : []
+      parts = (this.isMultipart() && this.body) ? filesFromFields.call(this, this.body) : []
@@
-        if (!field.file) {
+        if (!field || typeof field !== 'object' || field[kFileField] !== true) {
           continue
         }

4. The rest

  • @fastify/http-proxy with websocket: true: Node removes its own error listener from a socket before emitting upgrade. Three code paths left the socket without one, so a TCP reset or one extra frame crashed the process: a reset during async routing (CVE-2026-129500), a #fragment in the upgrade path that got a 101 before the upstream link failed (CVE-2026-129502), and an upgrade pipelined behind another request (CVE-2026-130647). The first and third only affect cleartext HTTP/1 listeners; TLS sockets keep their own listener. The plugin also dropped the browser’s Origin header while forwarding cookies, which defeats upstream checks that treat a missing Origin as a non-browser client, such as gorilla/websocket’s default CheckOrigin (CVE-2026-133111).
  • @fastify/busboy 3.2.6: One request crashes any app that hits the parts limit (default 1000) and then ends mid-part, because skipped parts had no error listener (CVE-2026-124724). A roughly 106-byte part with unterminated headers hangs the parser forever (CVE-2026-128835). A malformed %G escape skips the URL-encoded field size check (CVE-2026-128842). A header terminator split at the 80 KiB headerSize boundary turns a file into a field (CVE-2026-128846).
  • @fastify/static: With dotfiles: 'deny' and list enabled, /.git/ returned a directory listing because the listing fallback misread send’s 403 (CVE-2026-130811). File contents stayed protected. The allowedPath guard was checked before index and extension resolution, so /private/ served a denied /private/index.html (CVE-2026-115515).
  • @fastify/proxy-addr 5.1.3: A trustProxy entry with a zoned IPv6 link-local address (fe80::1%proxy0) ignored the zone, so the same address on another interface was trusted and its X-Forwarded-For believed (CVE-2026-121192).

IOCs

These are vulnerabilities, not malware, and no exploitation has been reported. Request shapes worth alerting on in access logs or a WAF:

  • Request targets that don’t start with / other than OPTIONS *, for example GET *admin HTTP/1.1.
  • Paths containing %5C or \ next to %20, %09 or #; %2525; %E2%84%AA (Kelvin sign); empty segments in front of protected routes (/tenant//, /user/).
  • ..; or %2e%2e; path segments, and paths starting with http: or https: followed by encoded dot segments, sent to a proxy.
  • GET, HEAD or TRACE requests with a non-zero Content-Length, especially on proxy routes.
  • application/json requests to multipart upload endpoints with "file": and "_buf": keys in the body.

Detection and remediation

Find affected versions:

# Installed tree (run in each service)
npm ls @fastify/express @fastify/middie @fastify/reply-from @fastify/http-proxy \
  @fastify/multipart @fastify/busboy @fastify/static @fastify/proxy-addr --all

# Lockfiles across a monorepo or many repos
grep -rhoE '"node_modules/@fastify/(express|middie|reply-from|http-proxy|multipart|busboy|static|proxy-addr)":\s*\{\s*"version":\s*"[^"]+"' \
  --include=package-lock.json . | sort | uniq -c
grep -rhE '^"?@fastify/(express|middie|reply-from|http-proxy|multipart|busboy|static|proxy-addr)@' -A1 \
  --include=yarn.lock --include=pnpm-lock.yaml .

Upgrade whichever of these you depend on directly:

npm install @fastify/express@^4.0.10 @fastify/middie@^9.3.8 @fastify/reply-from@^12.9.1 \
  @fastify/http-proxy@^11.6.10 @fastify/multipart@^10.1.9 @fastify/static@^10.1.12
npm update @fastify/busboy @fastify/proxy-addr   # transitive, caret ranges pick up 3.2.6 and 5.1.3
npm ls @fastify/busboy @fastify/proxy-addr      # confirm

Find code that depends on the vulnerable behaviour:

# Path-scoped Express/middie middleware used for auth
grep -rnE "\.use\(\s*['\"/\[]" --include='*.js' --include='*.ts' src/ | grep -iE 'auth|admin|session|jwt|acl|rate'

# reply-from on the core http transport (the configuration CVE-2026-133212 needs)
grep -rnE "undici:\s*false|http:\s*\{" --include='*.js' --include='*.ts' src/ | grep -v node_modules

# saveRequestFiles + attachFieldsToBody, and filename used as a path
grep -rnE "attachFieldsToBody|saveRequestFiles|\.filename" --include='*.js' --include='*.ts' src/

If you can’t upgrade right away:

  1. Move authentication and authorization into a Fastify preHandler hook and decide on request.routeOptions.url, not request.url. That covers every @fastify/express and @fastify/middie vector.
  2. Add an onRequest hook, registered before @fastify/express, that rejects targets not starting with / and paths containing a backslash.
  3. Use the default undici transport in @fastify/reply-from, and reject GET, HEAD and TRACE requests that carry a body.
  4. Check request.isMultipart() before saveRequestFiles(), and pass every file.filename through path.basename() or an allowlist.

There are no credentials to rotate unless logs show the request shapes above reaching protected routes. If a smuggled request could have reached an upstream admin endpoint behind @fastify/reply-from, rotate whatever that endpoint exposes.

Timeline

  • 2026-10-15: @fastify/multipart 10.1.4 fixes the temp-file leak (CVE-2026-110710), advisory not yet public.
  • 2026-10-27: @fastify/static 10.1.8 fixes the allowedPath bypass (CVE-2026-115515), advisory not yet public.
  • 2026-11-15 11:08 UTC: @fastify/proxy-addr 5.1.3 published.
  • 2026-11-16: @fastify/busboy 3.2.6 published at 09:37 UTC; busboy and proxy-addr advisories follow at 09:34 to 09:47 UTC. @fastify/multipart 10.1.9 is published at 11:09 UTC with CVE-2026-124289 and CVE-2026-110710 advisories.
  • 2026-11-18 18:02 UTC: @fastify/middie 9.3.7 fixes three middleware bypasses.
  • 2026-11-19: @fastify/static 10.1.12 (14:42 UTC), @fastify/reply-from 12.8.4 (14:39 UTC) and @fastify/http-proxy 11.6.10 (16:44 UTC) are published with their advisories.
  • 2026-11-20: @fastify/reply-from 12.9.1 (15:22 UTC, CVE-2026-133212), @fastify/middie 9.3.8 (15:54 UTC, CVE-2026-133250) and @fastify/express 4.0.10 (18:00 UTC, five advisories) are published. NVD publishes CVE-2026-133212 at 18:18 UTC.

From research to remediation

Check whether this pattern exists in your codebase

Turn this research into a remediation workflow. Scan dependencies and package manifests for similar supply-chain risk, then prioritize fixes with reachability context.

References