@fastify/static is vulnerable to Authorization Bypass
53
CVSS Score
Medium
Authorization Bypass
@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.
Upgrade the @fastify/static library to the patch version.
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.
5.0.0 - 10.1.1
Fixed in 10.1.2@fastify/static is vulnerable to Authorization Bypass in versions 5.0.0 - 10.1.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
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.