Impact
Fastify versions 4.x through 5.12.1 incorrectly route malformed URLs through a shared not‑found handler before URL decoding, ignoring the plugin prefix and bypassing the preHandler hook. This flaw lets an external user reach a private fallback route that is normally protected by authentication and read its full response, effectively circumventing the intended access controls.
Affected Systems
All Fastify releases from 4.0.0 up to, but not including, 5.12.2 are affected. The vulnerability resides in the core routing logic that handles encapsulated plugin routes.
Risk and Exploitability
The CVSS score of 7.5 indicates a high severity, and while EPSS data is unavailable, the flaw can be exploited by any unauthenticated client that can send a crafted request over the network. The vulnerability is not currently listed in the CISA KEV catalog, but the potential for sensitive data exposure makes it a strong candidate for immediate patching.
OpenCVE Enrichment