Advisory

GHSA-8pvw-jcv7-9cmj

Also known as: CVE-2026-7120

Summary

@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths

Details

Impact

@fastify/static evaluates the allowedPath callback 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 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 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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-07-24 16:43 UTC
Modified
2026-07-24 17:11 UTC

Affected packages and fixes

@fastify/static

npm · All systems

Affected

  • introduced 0, fixed 10.1.2 (semver)

Fixed versions

10.1.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences