CVE-2026-7120 Details
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.
A vulnerability in @fastify/static versions through 10.1.1 allows for authorization bypass by exploiting non-canonical pathnames. The library evaluates the allowedPath callback before normalizing dot segments and duplicate slashes, enabling an unauthenticated attacker to bypass path restrictions. This could result in serving files that were meant to be restricted, although the bypass does not allow access outside the configured static root. The vulnerability is particularly concerning for applications that use allowedPath to control access to specific files or directories.
Users are advised to upgrade to @fastify/static version 10.1.2 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.openjsf.org/security-advisories.html | openjs | Vendor Advisory |
| https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj | openjs | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-180 | Incorrect Behavior Order: Validate Before Canonicalize | openjs |
Affected Products
| Product | Versions |
|---|---|
| fastify fastify-static | < 10.1.2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 28, 2026 | Initial Analysis | [email protected] |
| Jul 23, 2026 | CVE Modified | CISA-ADP |
| Jul 23, 2026 | New CVE Received | openjs |