Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @fastify/static
  4. ›
  5. CVE-2026-7120

CVE-2026-7120: @fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths

July 24, 2026

@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.

References

  • cna.openjsf.org/security-advisories.html
  • github.com/advisories/GHSA-8pvw-jcv7-9cmj
  • github.com/fastify/fastify-static/commit/878c72e920fabacf7e37739bf78057044717bf63
  • github.com/fastify/fastify-static/releases/tag/v10.1.2
  • github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj
  • nvd.nist.gov/vuln/detail/CVE-2026-7120

Code Behaviors & Features

Detect and mitigate CVE-2026-7120 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 10.1.2

Fixed versions

  • 10.1.2

Solution

Upgrade to version 10.1.2 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-180: Incorrect Behavior Order: Validate Before Canonicalize

Source file

npm/@fastify/static/CVE-2026-7120.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 25 Jul 2026 00:16:51 +0000.