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

- Severity: Medium 5.3 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-07-23T02:48:35.120Z
- Modified: 2026-07-28T17:05:24.913Z
- Also known as: GHSA-8pvw-jcv7-9cmj
- Weaknesses: CWE-180
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: openjs

## 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.

(As written by CVE List.)

## Affected

- @fastify/static @fastify/static: before 10.1.2 (not affected: 10.1.2)
- @fastify/static (npm): before 10.1.2
- fastify fastify-static: before 10.1.2

## Every score

- openjs: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj> (vendor-advisory, web)
- <https://cna.openjsf.org/security-advisories.html> (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)

## Sources

- CVE List: [CVE-2026-7120](https://www.cve.org/CVERecord?id=CVE-2026-7120), CVE Terms of Use, modified 2026-07-23
- GitHub Advisory Database: [GHSA-8pvw-jcv7-9cmj](https://github.com/advisories/GHSA-8pvw-jcv7-9cmj), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-7120](https://nvd.nist.gov/vuln/detail/CVE-2026-7120), Public domain, modified 2026-07-28

---

Page: https://cve.day/CVE-2026-7120 · Whole record: https://cve.day/CVE-2026-7120.json · Rebuilt by cve.day 2026-11-25T22:59:29.862Z
