CVE-2026-7120
CVE-2026-7120 is a medium-severity vulnerability in Fastify Fastify-static with a CVSS 3.x base score of 5.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-180.
Key facts
- Severity: Medium (CVSS 3.x base score 5.3)
- EPSS exploit prediction: 0% (13th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-180
- Affected product: Fastify Fastify-static
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2026-7120?
- CVE-2026-7120 has a CVSS 3.x base score of 5.3, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity none, and availability none.
- Is CVE-2026-7120 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (13th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-7120?
- CVE-2026-7120 affects Fastify Fastify-static. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-7120?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2026-7120 published?
- CVE-2026-7120 was published on 2026-07-23 and last updated on 2026-07-28.
References
- https://cna.openjsf.org/security-advisories.html
- https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj
Affected products (1)
- cpe:2.3:a:fastify:fastify-static:*:*:*:*:*:*:*:*
More vulnerabilities in Fastify Fastify-static
- CVE-2021-22964 — High (CVSS 8.8): A redirect vulnerability in the `fastify-static` module version >= 4.2.4 and < 4.4.1 allows remote attackers to…
- CVE-2026-15074 — High (CVSS 7.5): @fastify/static up to and including version 10.1.0 fails to reject dot-dot path segments in request pathnames before…
- CVE-2021-22963 — Medium (CVSS 6.1): A redirect vulnerability in the fastify-static module version < 4.2.4 allows remote attackers to redirect users to…
- CVE-2026-6414 — Medium (CVSS 5.9): @fastify/static versions 8.0.0 through 9.1.0 decode percent-encoded path separators (%2F) before filesystem resolution,…
- CVE-2026-6410 — Medium (CVSS 5.3): @fastify/static versions 8.0.0 through 9.1.0 allow path traversal when directory listing is enabled via the list…
All CVEs affecting Fastify Fastify-static →
Other CWE-180 vulnerabilities
- CVE-2026-15704 — Critical (CVSS 9.8): In Eclipse BaSyx Go Components versions up to and including 1.0.0, ABAC-enabled deployments are vulnerable to an…
- CVE-2026-24895 — Critical (CVSS 9.8): FrankenPHP is a modern application server for PHP. Prior to 1.11.2, FrankenPHP’s CGI path splitting logic improperly…
- CVE-2026-73420 — Critical (CVSS 9.1): NextAuth.js provides authentication for Next.js. Prior to @auth/core 0.41.3 and next-auth 4.24.15 and 5.0.0-beta.32,…
- CVE-2026-52747 — High (CVSS 8.6): ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Prior to…
- CVE-2026-48721 — High (CVSS 8.6): Warp is an agentic development environment. From 0.2025.10.08.08.12.stable_00 until 0.2026.05.06.15.42.stable_01, Warp…
- CVE-2026-45022 — High (CVSS 7.5): go-git is an extensible git implementation library written in pure Go. Prior to 5.19.0 and 6.0.0-alpha.3, go-git may…