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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-23 · Modified: 2026-07-23
- Aliases: GHSA-8pvw-jcv7-9cmj
- Record: https://cvemate.com/vulnerability/CVE-2026-7120 · JSON: https://cvemate.com/vulnerability/CVE-2026-7120/json

## Description

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

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.221%, percentile 13.504%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- fastify fastify-static: \< 10.1.2
- @fastify/static @fastify/static: \< 10.1.2
- @fastify static (Npm): \< 10.1.2

## References

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

---

Data as of 2026-12-05T09:39:44.611Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
