CVE-2026-133120
Received Received - Intake

Path Confusion in @fastify/express Middleware

Vulnerability report for CVE-2026-133120, 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 before 4.0.10, the plugin passes Express a request URL that does not always match the path Fastify's router dispatched, so path-scoped Express middleware can be skipped while the route handler still runs. Several request forms trigger the mismatch, including percent-decoding that rewrites a backslash to a slash or double-decodes an encoded percent sign, and a request target that begins with an asterisk, so the middleware and the handler disagree on the path or on parameter and query values. An unauthenticated client can therefore reach a handler that an authentication, authorization, or rate-limiting middleware was meant to protect, with no special configuration required. 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.10 (inc)
fastify express 4.0.10

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-174 The product decodes the same input twice, which can limit the effectiveness of any protection mechanism that occurs in between the decoding operations.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects @fastify/express versions before 4.0.10. It allows path-scoped Express middleware to be bypassed while the route handler still executes. This happens because the plugin passes Express a request URL that doesn't match the path Fastify's router dispatched. Attackers can exploit this by crafting requests with percent-decoding issues, double-encoded values, or asterisk-prefixed targets to skip middleware like authentication or authorization.

Detection Guidance

Check if your system uses @fastify/express versions prior to 4.0.10 by running: npm list @fastify/express. If the version is below 4.0.10, the system is vulnerable. Monitor for unusual requests with encoded backslashes, double-encoded percent signs, or asterisk prefixes in URLs.

  • Use network traffic analysis tools like Wireshark or tcpdump to inspect incoming requests for suspicious URL patterns mentioned in the advisory.
Impact Analysis

An unauthenticated attacker could bypass security middleware such as authentication, authorization, or rate limiting. This could allow unauthorized access to protected routes, potentially leading to data breaches, privilege escalation, or other malicious activities. The impact is high due to the network-based attack vector with low complexity.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating compliance requirements for data protection such as GDPR and HIPAA. It undermines security controls like authentication and authorization, increasing the risk of data exposure and non-compliance with regulatory standards.

Mitigation Strategies

Upgrade @fastify/express to version 4.0.10 or later immediately using: npm update @fastify/express. If upgrading is not possible, implement Fastify hooks to enforce authentication or block problematic request patterns.

  • Add validation in onRequest hooks to reject requests with asterisk prefixes, double-encoded percent signs, or backslashes in paths.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-133120. 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...