CVE-2026-7120
MEDIUM 5.3CVSS 3.1@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths
@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.
- Published
- 23 Jul 2026
- Last modified
- 28 Jul 2026
- Assigned by
- ce714d77-add3-4f53-aff5-83d477b104bb
- NVD status
- Analyzed
- Weakness
- CWE-180
- Also known as
- GHSA-8pvw-jcv7-9cmj
- Sources
- NVDJSONOSV GHSA-8pvw-jcv7-9cmjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fastify | fastify-staticcpe:2.3:a:fastify:fastify-static:*:*:*:*:*:*:*:* |
< 10.1.2 | 10.1.2 |
| OSV | npm | @fastify/static | < 10.1.2 | 10.1.2 |
References
- https://cna.openjsf.org/security-advisories.html · Vendor Advisory, WEB
- https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-7120 · ADVISORY
- https://github.com/fastify/fastify-static/commit/878c72e920fabacf7e37739bf78057044717bf63 · WEB
- https://github.com/fastify/fastify-static · PACKAGE
- https://github.com/fastify/fastify-static/releases/tag/v10.1.2 · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 23 Jul 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 24 Jul 2026)