{"id":"CVE-2026-7120","aliases":["GHSA-8pvw-jcv7-9cmj"],"url":"https://o3.security/vulnerability/CVE-2026-7120","summary":"@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths","details":"### Impact\n\n`@fastify/static` evaluates the `allowedPath` callback before normalizing dot segments and duplicate slashes in the pathname used for file resolution. Non-canonical pathnames such as `//file`, `/./file`, or `/public/../private/file` bypass `allowedPath` filtering while resolving to the intended file on disk.\n\nApplications that use `allowedPath` as a security boundary to restrict access to specific static files or path subtrees may unintentionally expose files that were intended to be denied.\n\n### Patches\n\nUpgrade to `@fastify/static` >= 10.1.2.\n\n### Workarounds\n\nNone. Upgrade to the patched version.","published":"2026-07-23T02:48:35.120Z","modified":"2026-10-21T02:59:07.948303973Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},"epss":{"score":0.00369,"percentile":0.3057,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"@fastify/static","fixedVersion":"10.1.2"}],"fix":{"url":"https://github.com/fastify/fastify-static/commit/878c72e920fabacf7e37739bf78057044717bf63","label":"fastify/fastify-static@878c72e"},"references":[{"type":"ADVISORY","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7120.json"},{"type":"ADVISORY","url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7120"},{"type":"WEB","url":"https://github.com/fastify/fastify-static/commit/878c72e920fabacf7e37739bf78057044717bf63"},{"type":"PACKAGE","url":"https://github.com/fastify/fastify-static"},{"type":"WEB","url":"https://github.com/fastify/fastify-static/releases/tag/v10.1.2"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-21T02:59:07.948303973Z"}}