# CVE-2026-6556: @fastify/express vulnerable to middleware bypass via non-string mount paths in prefixed plugins

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-06-30 · Modified: 2026-06-30
- Record: https://cvemate.com/vulnerability/CVE-2026-6556 · JSON: https://cvemate.com/vulnerability/CVE-2026-6556/json

## Description

```text
@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 with those forms does not match the actual prefixed request path. Applications that use path-scoped middleware for authentication, authorization, rate limiting, or auditing on routes inside a prefixed scope can be bypassed by sending a request to the prefixed route, because Fastify still matches the route but the middleware is skipped. Patches: upgrade to @fastify/express 4.0.7. Workarounds: use string mount paths instead of arrays or regular expressions in prefixed plugins, or register one use call per path.
```

## Signals

- CVSS: 9.1 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.302%, percentile 24.609%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- fastify fastify\\/express: \< 4.0.7
- @fastify/express @fastify/express: \< 4.0.7

## References

- <https://github.com/fastify/fastify-express/security/advisories/GHSA-3wf5-7852-vcfq>
- <https://cna.openjsf.org/security-advisories.html>

---

Data as of 2026-12-05T09:21:41.950Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
