Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Network devices

CVE-2026-129504 — @fastify/express

Critical · CVSS 9.1EPSS 0.5% First seen November 21, 2026

One of 5 @fastify/express vulnerabilities published together by NVD: our article covers all of them.

Network devicesVulnerabilities

Research article

CVE-2026-129504: Path Mismatch in @fastify/express Allows Unauthorized Access

CVECVE-2026-129504
Vendor and product@fastify/express
PublishedNovember 21, 2026 18:15 UTC
Research cut-offNovember 21, 2026 17:40 UTC
Sources reviewed2: NVD record (last modified 2026-11-21); CISA KEV catalog

Executive summary

CVE-2026-129504 impacts the @fastify/express package, enabling unauthenticated access to protected routes due to a path-scoped middleware issue. The CVSS 3.1 score is 9.1, CRITICAL, with no impact on availability. The reviewed sources do not report exploitation. Users are advised to upgrade to version 4.0.10 to address the risk [1].

Key points

  • CVE-2026-129504 affects @fastify/express versions 4.0.0 through 4.0.9 [1].
  • The vulnerability enables unauthenticated access to protected routes due to a path-scoped middleware issue [1].
  • The CVSS 3.1 score is 9.1, CRITICAL, with no impact on availability [1].
  • CVE-2026-129504 is not listed in the CISA Known Exploited Vulnerabilities Catalog [2].
  • Users should upgrade to @fastify/express 4.0.10 to address the risk [1].

Vulnerability identification

CVE IDVendorProductCWECVSS 3.1PublishedLast ModifiedRecord Status
CVE-2026-129504Fastify@fastify/expressCWE-436, CWE-8639.1 CRITICAL, scored by ce714d77-add3-4f53-aff5-83d477b104bb2026-11-21T17:16:392026-11-21T17:16:39Received

Vulnerability description

The @fastify/express package, when used with versions 4.0.0 through 4.0.9, improperly combines the mount path of path-scoped middleware with the Fastify plugin prefix using string concatenation. This causes a mismatch between the Fastify router and the Express middleware, so the middleware is silently skipped [1]. Consequently, protected routes may be accessible to unauthenticated users without requiring any special setup or crafted requests [1].

Attack surface and exploitation prerequisites

The CVSS vector indicates the vulnerability is accessible over the network (AV:N), requires no privilege (PR:N), and no user interaction is needed (UI:N). This issue arises when an app uses Express middleware that's scoped to specific paths for handling authentication or authorization inside a prefixed plugin [1].

Impact analysis

The CVSS vector shows the vulnerability has a high impact on confidentiality (C:H) and integrity (I:H), with no effect on availability (A:N). This can expose protected routes to unauthenticated clients [1].

Affected products and versions

AffectedFixed
@fastify/express ≥ 4.0.0, < 4.0.104.0.10

Exploitation and threat intelligence status

CVE-2026-129504 is not included in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-21, which does not confirm or deny exploitation. The reviewed sources do not report any exploitation [2].

Detection and exposure assessment

Users can determine if they are affected by checking the installed version of @fastify/express against the affected range [1]. There are no specific detection steps provided by the sources.

Remediation

The vulnerability is resolved in @fastify/express 4.0.10, and users are advised to upgrade to this version [1].

Remediation checklist

  1. Upgrade @fastify/express to version 4.0.10 [1].
  2. Check the installed version of @fastify/express against the affected range (general guidance).
  3. Monitor for unauthorized access to protected routes (general guidance, not stated in the sources).

Evidence gaps

  • The sources do not describe the technical mechanics of the flaw [1].
  • The sources do not mention any indicators of compromise [1].
  • The sources do not provide any workarounds or compensating controls [1].
  • The sources do not describe the internal workings of the affected component [1].
  • The sources do not report any exploitation scenarios or attack lifecycle [1].

References

  1. CVE-2026-129504 record. NIST National Vulnerability Database (NVD), 2026-11-21. https://nvd.nist.gov/vuln/detail/CVE-2026-129504. Accessed 2026-11-21. CVE-2026-129504 record, including the vulnerability description, CVSS scores, affected versions, and remediation information.
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-21. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-21. CISA KEV status, indicating that the vulnerability is not listed in the catalog as of 2026-11-21.

Written with AI assistance from the 2 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Summary

@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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Critical · 9.1 CVSS 3.1 base score from the CNA

An attacker without an account can exploit this over the network, without any user action.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Login needed
no
User action needed
no
Scope
stays within the vulnerable component
Impact
high on confidentiality and integrity, none on availability

Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Weakness

Affected and fixed versions

ProductAffected versionsFixed in
@fastify/express≥ 4.0.0, < 4.0.104.0.10

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Other references

Details from NVD (public domain).

Affected

  • @fastify/express

Frequently asked questions

What is CVE-2026-129504?

CVE-2026-129504 impacts the @fastify/express package, enabling unauthenticated access to protected routes due to a path-scoped middleware issue. The CVSS 3.1 score is 9.1, CRITICAL, with no impact on availability. The reviewed sources do not report exploitation. Users are advised to upgrade to version 4.0.10 to address the risk. Weakness type: Interpretation Conflict (CWE-436).

How severe is CVE-2026-129504?

CVE-2026-129504 has a CVSS 3.1 base score of 9.1 (critical), from the CNA. An attacker without an account can exploit this over the network, without any user action.

Is CVE-2026-129504 being exploited?

Not as far as is known: CVE-2026-129504 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-129504?

@fastify/express ≥ 4.0.0, < 4.0.10 (fixed in 4.0.10).

How do I fix CVE-2026-129504?

Upgrade @fastify/express to version 4.0.10. Check the installed version of @fastify/express against the affected range (general guidance). Monitor for unauthorized access to protected routes (general guidance, not stated in the sources).

Timeline & sources

References