CVE-2026-129504
Received Received - Intake

Path Traversal in @fastify/express Plugin

Vulnerability report for CVE-2026-129504, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: openjs

Description

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

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
fastify express From 4.0.0 (inc) to 4.0.9 (inc)
fastify express to 4.0.10 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-436 Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.
CWE-863 The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects @fastify/express versions 4.0.0 through 4.0.9. It occurs when a plugin prefix ends with a slash or a mount path omits its leading slash, causing Express middleware to be skipped due to misaligned paths. This can expose protected routes to unauthenticated users without requiring crafted requests or special options.

Detection Guidance

To detect this vulnerability, check if your system is running @fastify/express versions 4.0.0 through 4.0.9. Run: npm list @fastify/express or npm ls @fastify/express. If the version is within this range, the system is vulnerable.

Impact Analysis

If you use path-scoped Express middleware for authentication or authorization within a prefixed plugin, this flaw could allow unauthorized access to protected routes. Attackers might bypass security controls, leading to data breaches or unauthorized actions. The issue is fixed in version 4.0.10, so upgrading is critical.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating compliance requirements such as GDPR (data protection) or HIPAA (health information privacy). Organizations using affected versions may face legal penalties, reputational damage, and loss of trust due to non-compliance.

Mitigation Strategies

Upgrade @fastify/express to version 4.0.10 or later immediately. Run: npm update @fastify/express or npm install @fastify/express@latest. Verify the update with npm list @fastify/express.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-129504. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...