CVE-2026-76169
Received Received - Intake

Fastify Prefix Bypass via Malformed URL in Not-Found Handler

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

Publication date: 2026-09-04

Last updated on: 2026-09-04

Assigner: openjs

Description

fastify versions >= 4.0.0 and before 5.12.2 can route a malformed URL sent under one plugin prefix to the custom not-found handler of a different sibling plugin, and invoke it without the preHandler hook declared for that handler. The internal not-found router for encapsulated handlers dispatches malformed paths through a single shared handler pointer before URL decoding, ignoring the prefix and skipping the selected handler's normal lifecycle. An unauthenticated attacker can therefore reach an authentication-protected private fallback through an unrelated public prefix and read its full response, bypassing the authentication hook and breaking prefix encapsulation. Users should upgrade to fastify 5.12.2 or later.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-04
Last Modified
2026-09-04
Generated
2026-09-05
AI Q&A
2026-09-04
EPSS Evaluated
2026-09-04
NVD
EUVD

Affected Vendors & Products

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

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-288 The product requires authentication, but the product has an alternate path or channel that does not require authentication.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects Fastify versions 4.0.0 to 5.12.1. When a malformed URL is sent under one plugin prefix, it can be routed to the custom not-found handler of a different sibling plugin. This bypasses normal authentication and lifecycle checks, allowing unauthenticated access to protected handlers under unrelated prefixes.

Detection Guidance

To detect this vulnerability, check your Fastify version with: npm list fastify. If the version is between 4.0.0 and 5.12.1, the system is vulnerable. Additionally, monitor for unauthorized access attempts to not-found handlers under different plugin prefixes.

Impact Analysis

An attacker could exploit this to bypass authentication and access sensitive data returned by not-found handlers under private or tenant prefixes. This could lead to unauthorized disclosure of confidential information without needing privileges or user interaction.

Compliance Impact

This vulnerability could violate compliance with GDPR and HIPAA by allowing unauthorized access to sensitive data. It may result in data breaches, leading to legal penalties, reputational damage, and failure to meet regulatory requirements for data protection and access controls.

Mitigation Strategies

Upgrade Fastify to version 5.12.2 or later immediately. As a temporary workaround, configure upstream proxies or gateways to reject malformed URLs before they reach the application.

Chat Assistant

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

EPSS Chart