@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths
Moderate severity
GitHub Reviewed
Published
Jul 22, 2026
in
fastify/fastify-static
•
Updated Jul 24, 2026
Description
Published by the National Vulnerability Database
Jul 23, 2026
Published to the GitHub Advisory Database
Jul 24, 2026
Reviewed
Jul 24, 2026
Last updated
Jul 24, 2026
Impact
@fastify/staticevaluates theallowedPathcallback before normalizing dot segments and duplicate slashes in the pathname used for file resolution. Non-canonical pathnames such as//file,/./file, or/public/../private/filebypassallowedPathfiltering while resolving to the intended file on disk.Applications that use
allowedPathas a security boundary to restrict access to specific static files or path subtrees may unintentionally expose files that were intended to be denied.Patches
Upgrade to
@fastify/static>= 10.1.2.Workarounds
None. Upgrade to the patched version.
References