Vulnerability in Fastify Fastify-Static
CVE-2026-7120
@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.
EPSS: 0.004 (29.9th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
Affected products
- Fastify Fastify-static
- @Fastify/static — versions 0, 10.1.2
Weakness classification (CWE)
References
- ce714d77-add3-4f53-aff5-83d477b104bb (Vendor Advisory)
- ce714d77-add3-4f53-aff5-83d477b104bb (Vendor Advisory)
Frequently asked questions
- What is CVE-2026-7120?
- CVE-2026-7120 is a medium-severity vulnerability in Fastify Fastify-Static, classified under CWE-180. CVSS score: 5.3/10. Published 2026-07-23.
- How severe is CVE-2026-7120?
- Medium severity. CVSS v3 base score is 5.3 out of 10.