# CVE-2026-129504: @fastify/express vulnerable to path-scoped middleware bypass via prefix and mount path join mismatch

Status: published. Published: 2026-11-21. Updated: 2026-11-23.

@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.0 through 4.0.9, the plugin joins a path-scoped middleware's mount path to the Fastify plugin prefix by string concatenation, so when the plugin prefix ends with a slash or the mount path omits its leading slash, the resulting Express mount path does not line up with the route the Fastify router serves. Express then fails to match and passes the request on while the Fastify router still dispatches the route, so the middleware is silently skipped. An application that uses path-scoped Express middleware for authentication or authorization inside a prefixed plugin can expose protected routes to unauthenticated clients, with no crafted request and no non-default option required, and string, array, and regular-expression mount paths are all affected. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- @fastify/express / @fastify/express (@fastify/express): ≥ 4.0.0; < 4.0.10 (affected, semver); 4.0.10 (unaffected, semver). Source: CNA: openjs

## Severity and prioritization

- CVSS 3.1: 9.1 (critical); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N; source: CNA: openjs

- CVSS 3.1: 9.1 (critical); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N; source: NVD: ce714d77-add3-4f53-aff5-83d477b104bb

- CISA KEV: No listing in collected sources

- EPSS: 0.49% as of 2026-11-23; percentile 42.87%

- SSVC: exploitation none; automatable yes; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-436, CWE-863

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/fastify/fastify-express/security/advisories/GHSA-f44m-4qwg-5587 (CNA: openjs)

- https://cna.openjsf.org/security-advisories.html (CNA: openjs)

- https://cna.openjsf.org/security-advisories.html (ce714d77-add3-4f53-aff5-83d477b104bb)

- https://github.com/fastify/fastify-express/security/advisories/GHSA-f44m-4qwg-5587 (ce714d77-add3-4f53-aff5-83d477b104bb)

## Provenance

- CNA: openjs: https://www.cve.org/CVERecord?id=CVE-2026-129504; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-129504; retrieved 2026-11-21; source updated 2026-11-21

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-129504; retrieved 2026-11-23; source updated Not reported

Revision: 753ab7cf5fbded1bab97c24649dbd83ac2609976d79a6d5988e406916a21dfde

Canonical: https://y2.dev/cve/CVE-2026-129504

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.