CVE-2026-133867
Received Received - Intake

Authentication Bypass in @fastify/express via Regex Path Handling

Vulnerability report for CVE-2026-133867, 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.7 through 4.0.9, the plugin does not rewrite regular-expression mount paths to account for a parameterized plugin prefix, so when middleware is mounted with a regular expression inside a plugin registered under a parameterized prefix, the Express matcher treats the prefix parameter as literal text and never matches the real request path. As a result, Express silently skips that middleware while Fastify still runs the route handler, so an application that relies on regular-expression mounted middleware for authentication or authorization inside a parameterized-prefix plugin exposes protected routes to unauthenticated clients. No special configuration is required beyond a parameterized prefix and a regular-expression mount. 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 3 associated CPEs
Vendor Product Version / Range
fastify express From 4.0.7 (inc) to 4.0.10 (exc)
fastify express From 4.0.7 (inc) to 4.0.9 (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-287 When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects @fastify/express versions 4.0.7 to 4.0.9. When Express middleware is mounted with a regular expression inside a plugin registered under a parameterized prefix, the Express matcher incorrectly treats the prefix parameter as literal text. This causes Express to skip the middleware while Fastify still processes the route, potentially exposing protected routes to unauthenticated users.

Detection Guidance

Check if your system uses @fastify/express versions 4.0.7 through 4.0.9. Run: npm list @fastify/express. If the version is within this range, the system is vulnerable.

Impact Analysis

If you use @fastify/express with a parameterized plugin prefix and regular-expression mounted middleware for authentication or authorization, attackers could bypass security controls. This may lead to unauthorized access to protected routes or data, compromising application security.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating compliance requirements like GDPR (data protection) or HIPAA (health information). Organizations may face legal penalties, reputational damage, or loss of certification if such breaches occur due to unpatched software.

Mitigation Strategies

Upgrade @fastify/express to version 4.0.10 or later. Run: npm update @fastify/express. 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-133867. 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...