# CVE-2026-124626: @fastify/express vulnerable to middleware bypass via empty route parameters and wildcards

- Severity: Critical 9.1 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.87%, higher than 59% of CVEs (2026-12-01)
- Published: 2026-11-21T17:01:36.437Z
- Modified: 2026-11-23T21:16:52.757Z
- Weaknesses: CWE-287, CWE-436
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: openjs

## Description

@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.5 through 4.0.9, the plugin matches path-scoped Express middleware with a matcher that requires a non-empty value for a dynamic segment, while Fastify's router accepts an empty parameter or wildcard value. When a route and an Express middleware mount share a dynamic pattern, a request with an empty segment matches the Fastify route and runs the handler while the middleware mounted on that pattern is skipped, so on a scoped mount an unauthenticated request can reach a protected handler. No special configuration is required, and the practical impact depends on what the empty value selects in the application. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.

(As written by CVE List.)

## Affected

- @fastify/express @fastify/express: from 4.0.5 before 4.0.10 (not affected: 4.0.10)

## References

- <https://github.com/fastify/fastify-express/security/advisories/GHSA-662w-h4p6-jq4p>
- <https://cna.openjsf.org/security-advisories.html>

## Sources

- CVE List: [CVE-2026-124626](https://www.cve.org/CVERecord?id=CVE-2026-124626), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-124626](https://nvd.nist.gov/vuln/detail/CVE-2026-124626), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-124626 · Whole record: https://cve.day/CVE-2026-124626.json · Rebuilt by cve.day 2026-11-25T22:59:52.522Z
