Vulnerability advisory

CVE-2026-7120

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

Published Updated OSV record ↗

Also known as GHSA-8pvw-jcv7-9cmj

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/fastify/fastify-static ↗
All commits before 7a9d1c638dfad3f43973a90a3394e0207ee2ad207a9d1c638dfad3f43973a90a3394e0207ee2ad20
Also listed as affected (100)
  • v10.1.1
  • v10.1.0
  • v10.0.0
  • v9.3.0
  • v9.2.0
  • v9.1.3
  • v9.1.2
  • v9.1.1
  • v9.1.0
  • v9.0.0
  • v8.3.0
  • v8.2.0
  • v8.1.1
  • v8.1.0
  • v8.0.4
  • v8.0.3
  • v8.0.2
  • v8.0.1
  • v8.0.0
  • v7.0.4
  • v7.0.3
  • v7.0.2
  • v7.0.1
  • v7.0.0
  • v6.12.0
  • v6.11.2
  • v6.11.1
  • v6.11.0
  • v6.10.2
  • v6.10.1
  • v6.10.0
  • v6.9.0
  • v6.8.0
  • v6.7.0
  • v6.6.1
  • v6.6.0
  • v6.5.1
  • v6.5.0
  • v6.4.1
  • v6.4.0
  • v6.3.0
  • v6.2.0
  • v6.1.0
  • v6.0.0
  • v5.0.2
  • v5.0.1
  • v5.0.0
  • v4.6.1
  • v4.6.0
  • v4.5.0
  • v4.4.2
  • v4.4.1
  • v4.4.0
  • v4.3.0
  • v4.2.4
  • v4.2.3
  • v4.2.2
  • v4.2.1
  • v4.2.0
  • v4.1.0
  • v4.0.1
  • v4.0.0
  • v3.5.0
  • v3.4.0
  • v3.3.1
  • v3.3.0
  • v3.2.1
  • 3.2.0
  • v3.1.0
  • v3.0.1
  • v3.0.0
  • v2.7.0
  • v2.6.0
  • v2.5.1
  • v2.5.0
  • v2.4.0
  • v2.3.4
  • v2.3.3
  • v2.3.2
  • v2.3.1
  • v2.3.0
  • v2.2.0
  • v2.1.0
  • v1.0.0
  • v2.0.0
  • v0.14.0
  • v0.13.0
  • v0.12.0
  • v0.11.0
  • v0.10.0
  • v0.9.0
  • v0.8.0
  • v0.6.0
  • v0.5.0
  • v0.4.1
  • v0.4.0
  • v0.3.0
  • v0.2.1
  • v0.2.0
  • v0.1.0

Description

@fastify/static evaluates the allowedPath callback before normalizing dot segments and duplicate path separators in the pathname used for file resolution. Versions up to and including 10.1.1 are affected. An unauthenticated attacker can bypass allowedPath restrictions by requesting equivalent non-canonical pathnames, causing files that were intended to be denied to be served anyway. The bypass does not allow access outside the configured static root by itself, it defeats path-based filtering only. The issue is patched in @fastify/static 10.1.2.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools