Medium

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

  • Disclosed: 24.07.2026
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @fastify/static < 10.1.2 10.1.2

References

CVSS score 5.3/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness (CWE)
CWE-180
Platform
npm
Package
@fastify/static
Disclosed
24.07.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-8pvw-jcv7-9cmj - CC BY 4.0

Vulnerability history: @fastify/static

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
04.2026 07.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 3

Disclosures per year

  1. 2026: 4
  1. @fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths this entry
    Medium · 5.3 CVE-2026-7120 < 10.1.2 10.1.2
  2. High · 7.5 CVE-2026-15074 < 10.1.1 10.1.1
  3. Medium · 5.3 CVE-2026-6410 >= 8.0.0, < 9.1.1 9.1.1
  4. Medium · 5.9 CVE-2026-6414 >= 8.0.0, < 9.1.1 9.1.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.