Repository navigation
⚠️ Security Release
This release fixes five vulnerabilities that let a request reach a route while path-scoped Express middleware, such as authentication, is skipped. Upgrade to 4.0.14.
| Advisory | CVE | Severity | Affected versions | Summary |
|---|---|---|---|---|
| GHSA-f9qf-hfc5-7xpj | CVE-2026-135279 | Critical | < 4.0.14 |
Middleware bypass via empty route parameters in Express routers and sub-applications |
| GHSA-x6w9-3qcm-vp2j | CVE-2026-135230 | High | >= 4.0.3, < 4.0.14 |
RegExp middleware bypass via encoded line terminators |
| GHSA-wjm9-696x-9549 | CVE-2026-135264 | High | >= 4.0.7, < 4.0.14 |
Middleware bypass via nested arrays of mount paths |
| GHSA-j373-fcw4-2ccv | CVE-2026-135270 | High | >= 4.0.5, < 4.0.14 |
Middleware bypass via mount paths starting with an optional group |
| GHSA-f446-h93m-fvr5 | CVE-2026-135280 | High | < 4.0.14 |
Middleware bypass with case-insensitive routing via Unicode mount paths and case-sensitive matchers |
Two of the fixes can change responses:
- A request whose empty parameter or wildcard value would skip middleware mounted inside an Express Router or application is now rejected with a 400, as 4.0.10 already does for mount paths passed to
fastify.use()(GHSA-f9qf-hfc5-7xpj). - With
caseSensitive: false, a request that a case-sensitive matcher inside Express would only match in the route's own spelling now fails with a 500 instead of skipping the middleware (GHSA-f446-h93m-fvr5).
Thanks to @UlisesGascon for reviewing the fixes.
What's Changed
- docs: note where Express mount paths differ from Fastify routes by @mcollina in #218
- docs: explain how to serve express routes inside a plugin by @mcollina in #216
- fix: follow deprecated top-level router options alongside routerOptions by @mcollina in #219
Full Changelog: v4.0.13...v4.0.14