@fastify/static is vulnerable to Authorization Bypass
53
Medium Risk
@fastify/static evaluates the allowedPath callback against the raw request pathname before normalizing dot segments and duplicate slashes in the pathname used for file resolution. Non-canonical pathnames such as //file, /./file, or /public/../private/file bypass allowedPath filtering while still resolving to the intended file on disk. Applications that use allowedPath as a security boundary to restrict access to specific static files or path subtrees can unintentionally expose files that were meant to be denied. The fix runs allowedPath against the normalized request pathname.
You are affected if you are using a version that falls within the vulnerable range and you rely on the allowedPath callback to restrict access to static files.
@fastify/static is vulnerable to Authorization Bypass in versions 5.0.0 - 10.1.1.
Upgrade the @fastify/static 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