fastify is vulnerable to Authentication Bypass
75
High Risk
Fastify's internal not-found router can dispatch a malformed URL under one plugin prefix to the custom not-found handler registered by a sibling plugin while skipping that handler's preHandler. An unauthenticated request to a public prefix can therefore reach an authentication-protected fallback under another prefix and receive protected data. The fix routes malformed URLs through the configured bad-URL handlers before any application not-found handler runs and removes the shared handler pointer.
You are affected if you are using a version that falls within the vulnerable range and protected data is returned from custom not-found handlers registered under plugin prefixes.
fastify is vulnerable to Authentication Bypass in versions 4.0.0 - 5.12.1.
Upgrade the fastify library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.